mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Remove double check for the same condition ?
This commit is contained in:
parent
25a2f48a02
commit
efe15b89bb
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue