mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -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
|
// check for any arguments
|
||||||
if argc > 1 {
|
if argc > 1 {
|
||||||
file = str.Trim(parts[0])
|
file = str.Trim(parts[0])
|
||||||
if argc >= 2 {
|
|
||||||
argv = parts[1:]
|
argv = parts[1:]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if err, cap := caplets.Load(file); err == nil {
|
if err, cap := caplets.Load(file); err == nil {
|
||||||
return true, cap, argv
|
return true, cap, argv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue