1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-07 03:24:09 +00:00

Fix flag validation ()

Regression from 
This commit is contained in:
Norwin
2022-03-10 11:11:26 +01:00
committed by GitHub
parent 75eb6cc9c1
commit 5fdd30423e

@@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
return errors.New(a + " is not set") return errors.New(a + " is not set")
} }
if util.IsEmptyString(a) { if util.IsEmptyString(c.String(a)) {
return errors.New(a + " is required") return errors.New(a + " is required")
} }
} }