Skip to content

Commit

Permalink
cmd/go/internal/modget: remove unused base.Errorf argument
Browse files Browse the repository at this point in the history
Found by the vet check that runs with 'go test cmd/go/internal/modget'.

For #57001.
For #60463.

Change-Id: I4be94f7156724459a5c47bb9745cbb5651fb972c
Reviewed-on: https://go-review.googlesource.com/c/go/+/498270
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
dmitshur authored and gopherbot committed May 26, 2023
1 parent a4cd365 commit 4c1d8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/modget/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func parseArgs(ctx context.Context, rawArgs []string) (dropToolchain bool, queri
if q.version == "none" {
switch q.pattern {
case "go":
base.Errorf("go: cannot use go@none", q.pattern)
base.Errorf("go: cannot use go@none")
continue
case "toolchain":
dropToolchain = true
Expand Down

0 comments on commit 4c1d8bf

Please sign in to comment.