mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 14:01:44 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
6a69369491
commit
f128d3a035
1 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,6 @@ func (h *CommandHandler) Parse(line string) (bool, []string) {
|
||||||
result := h.Parser.FindStringSubmatch(line)
|
result := h.Parser.FindStringSubmatch(line)
|
||||||
if len(result) == h.Parser.NumSubexp()+1 {
|
if len(result) == h.Parser.NumSubexp()+1 {
|
||||||
return true, result[1:]
|
return true, result[1:]
|
||||||
} else {
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue