Skip to content

Commit

Permalink
Fix flag validation (go-gitea#19046)
Browse files Browse the repository at this point in the history
Regression from go-gitea#5785
  • Loading branch information
noerw authored and Stelios Malathouras committed Mar 28, 2022
1 parent f2ffdb0 commit 723ccbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
return errors.New(a + " is not set")
}

if util.IsEmptyString(a) {
if util.IsEmptyString(c.String(a)) {
return errors.New(a + " is required")
}
}
Expand Down

0 comments on commit 723ccbd

Please sign in to comment.