Skip to content

Commit c94c688

Browse files
committed
chore: fix golangci-lint errors
Signed-off-by: Eng Zer Jun <[email protected]>
1 parent 299c548 commit c94c688

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ outer:
9292
// definitions and the matching Action functions are run.
9393
func (cmd *Command) Run(ctx context.Context, osArgs []string) (deferErr error) {
9494
_, deferErr = cmd.run(ctx, osArgs)
95-
return
95+
return deferErr
9696
}
9797

9898
func (cmd *Command) run(ctx context.Context, osArgs []string) (_ context.Context, deferErr error) {

docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func prefixFor(name string) (prefix string) {
1414
prefix = "--"
1515
}
1616

17-
return
17+
return prefix
1818
}
1919

2020
// Returns the placeholder, if any, and the unquoted usage string.

0 commit comments

Comments
 (0)