Skip to content

Commit 723ccbd

Browse files
noerwStelios Malathouras
authored andcommitted
Fix flag validation (go-gitea#19046)
Regression from go-gitea#5785
1 parent f2ffdb0 commit 723ccbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
3131
return errors.New(a + " is not set")
3232
}
3333

34-
if util.IsEmptyString(a) {
34+
if util.IsEmptyString(c.String(a)) {
3535
return errors.New(a + " is required")
3636
}
3737
}

0 commit comments

Comments
 (0)