Remove double check for the same condition ?

This commit is contained in:
Edznux 2018-10-28 18:05:39 +01:00
commit efe15b89bb

View file

@ -324,10 +324,8 @@ func parseCapletCommand(line string) (is bool, caplet *caplets.Caplet, argv []st
// check for any arguments
if argc > 1 {
file = str.Trim(parts[0])
if argc >= 2 {
argv = parts[1:]
}
}
if err, cap := caplets.Load(file); err == nil {
return true, cap, argv