Skip to content

Commit a50b817

Browse files
committed
lint: drop trailing '...' from usage error strings
staticcheck ST1005: error strings shouldn't end with punctuation. Two tournament usage messages in commands.go + ctl.go had a trailing '...' (illustrative, not literal); harmless to drop.
1 parent 385d219 commit a50b817

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cli/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func cmdTournament(r *repo.Repo, args []string) error {
262262
base := flagValue(args, "--base")
263263
test := flagValue(args, "--test")
264264
if test == "" {
265-
return fmt.Errorf("usage: agentenv tournament [--base <ref>] --test \"<cmd>\" [--keep] -- \"cand1\" \"cand2\" ...")
265+
return fmt.Errorf("usage: agentenv tournament [--base <ref>] --test \"<cmd>\" [--keep] -- \"cand1\" \"cand2\"")
266266
}
267267
cands := after(args, "--")
268268
if len(cands) == 0 {

internal/cli/ctl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func cmdCtl(args []string) error {
6767
test := flagValue(a, "--test")
6868
cands := after(a, "--")
6969
if test == "" || len(cands) == 0 {
70-
return fmt.Errorf("usage: agentenv ctl tournament [--base <ref>] --test \"<cmd>\" -- \"cand1\" \"cand2\" ...")
70+
return fmt.Errorf("usage: agentenv ctl tournament [--base <ref>] --test \"<cmd>\" -- \"cand1\" \"cand2\"")
7171
}
7272
req["base"], req["test"] = base, test
7373
var list []map[string]string

0 commit comments

Comments
 (0)