diff options
author | Norwin <noerw@users.noreply.github.com> | 2022-03-10 11:11:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 10:11:26 +0000 |
commit | 5fdd30423eac1f9de8546461e11d5fde26bc7d7c (patch) | |
tree | 75fceeb5a6bec5eb2db38e37ddeceb5d22d85ac6 /cmd/cmd.go | |
parent | 75eb6cc9c1efde75d2b34d85d4a3e4f8484e6ab4 (diff) | |
download | gitea-5fdd30423eac1f9de8546461e11d5fde26bc7d7c.tar.gz gitea-5fdd30423eac1f9de8546461e11d5fde26bc7d7c.zip |
Fix flag validation (#19046)
Regression from #5785
Diffstat (limited to 'cmd/cmd.go')
-rw-r--r-- | cmd/cmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go index fd713b9aff..3846a86900 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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") } } |