Fix incorrect switch statement (#41)

master
Ivan 3 years ago committed by GitHub
parent bf1e50906e
commit d57bf47b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,8 +105,7 @@ func main() {
fmt.Fprintf(os.Stderr, err.Error()) fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1) os.Exit(1)
} }
case CommandNew: case CommandNew, CommandEdit:
case CommandEdit:
err := EditConfig(configPath) err := EditConfig(configPath)
if err != nil { if err != nil {
fmt.Fprintf(os.Stderr, err.Error()) fmt.Fprintf(os.Stderr, err.Error())

Loading…
Cancel
Save