mirror of
https://github.com/golang/go
synced 2024-11-27 04:21:24 -07:00
cmd/go/internal/list: should omit comparison to bool constant
Change-Id: Ieef05be39bad1263eacedb33c2043ee83080f629 Reviewed-on: https://go-review.googlesource.com/c/go/+/436697 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
5613de9d47
commit
1896eac57f
@ -409,7 +409,7 @@ var nl = []byte{'\n'}
|
||||
func runList(ctx context.Context, cmd *base.Command, args []string) {
|
||||
modload.InitWorkfile()
|
||||
|
||||
if *listFmt != "" && listJson == true {
|
||||
if *listFmt != "" && listJson {
|
||||
base.Fatalf("go list -f cannot be used with -json")
|
||||
}
|
||||
if *listReuse != "" && !*listM {
|
||||
|
Loading…
Reference in New Issue
Block a user