-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In loader.matchPackagesInFS, the error check mismatched the used error. Further down in the same func, a nil error case was impossible. In builder.finish, a nil check on t would never be true. Finally, in a test func, remove an impossible error comparison. For more information on what this go/analysis pass does, see https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Ic648103c96435bb1339a15268e6204c44fe533f3 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1168432 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information
Showing
3 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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