chore: no need to check flag when use a.log()

main
sudo pacman -Syu 2021-05-11 11:32:19 +07:00
parent 6392d7ba4d
commit 146497ac8b
2 changed files with 3 additions and 3 deletions

View File

@ -52,9 +52,7 @@ func (a *action) getFlags(c *cli.Context) {
a.flags.filetype = a.getFlagValue(c, filetypeFlag, defaultFiletype)
a.flags.dryRun = c.Bool(dryRunFlag)
if a.flags.verbose {
a.log("flags %+v", a.flags)
}
a.log("flags %+v", a.flags)
}
func (a *action) getFlagValue(c *cli.Context, flag, fallback string) string {

View File

@ -83,6 +83,8 @@ func (a *action) getRealOutput() string {
nameWithExt := a.flags.filename + "." + a.flags.filetype
realOutput := filepath.Join(a.flags.output, nameWithExt)
a.log("real output %s", realOutput)
return realOutput
}