refactor(linter/plugins): remove unnecessary debug assertions#18764
Merged
graphite-app[bot] merged 1 commit intomainfrom Jan 31, 2026
Merged
Conversation
This was referenced Jan 31, 2026
Member
Author
This was referenced Jan 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes two redundant debug assertions from the oxlint CLI plugin system. Both debugAssertIsNonNull calls were checking variables that are already guaranteed to be non-null by explicit null checks in the lines immediately above them.
Changes:
- Removed unnecessary
debugAssertIsNonNull(loadPlugin)assertion inloadPluginWrapperfunction - Removed unnecessary
debugAssertIsNonNull(createWorkspace)assertion increateWorkspaceWrapperfunction
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c35b070 to
64be55c
Compare
6bf2be9 to
548af61
Compare
64be55c to
e13fa60
Compare
548af61 to
a898a2a
Compare
a898a2a to
659ba06
Compare
e13fa60 to
8374b33
Compare
659ba06 to
deb2e34
Compare
Member
|
This PR includes a bunch of changes from main, it looks like? |
deb2e34 to
715c763
Compare
8374b33 to
922d883
Compare
715c763 to
d3594e2
Compare
922d883 to
85c0c93
Compare
85c0c93 to
1e160fc
Compare
d3594e2 to
eb36fa9
Compare
camc314
approved these changes
Jan 31, 2026
Contributor
Merge activity
|
e85246b to
2a752a8
Compare
1e160fc to
5a93dfc
Compare
2a752a8 to
6cebe6f
Compare
5a93dfc to
8584f01
Compare
2a752a8 to
1d98417
Compare
Pure refactor. Remove 2 unnecessary `debugAssertIsNonNull` calls. In both cases the `null` check already happens directly above.
8584f01 to
6ecfc73
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pure refactor. Remove 2 unnecessary
debugAssertIsNonNullcalls. In both cases thenullcheck already happens directly above.