chore: fix lint

main
sudo pacman -Syu 2022-11-24 23:17:20 +07:00
parent 5b8e13c4eb
commit adb54bb92b
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ func (a *action) Run(c *cli.Context) error {
if !a.flags.write &&
!a.flags.diff {
a.RunHelp(c)
if err := a.RunHelp(c); err != nil {
return err
}
fmt.Println("Error: -w or -d must required one")
return nil
}