mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 19:50:06 -07:00
lint driven refactoring
This commit is contained in:
parent
bc3be7dd2b
commit
7919cda5ec
12 changed files with 45 additions and 49 deletions
|
@ -99,7 +99,7 @@ func (f *LinuxFirewall) EnableRedirection(r *Redirection, enabled bool) error {
|
|||
rkey := r.String()
|
||||
_, found := f.redirections[rkey]
|
||||
|
||||
if !enabled {
|
||||
if enabled {
|
||||
if found {
|
||||
return fmt.Errorf("Redirection '%s' already enabled.", rkey)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue