mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
ea43018146
commit
e02e13ab63
1 changed files with 1 additions and 2 deletions
|
@ -85,9 +85,8 @@ func (f PfFirewall) enableParam(param string, enabled bool) error {
|
||||||
|
|
||||||
if _, err := f.sysCtlWrite(param, value); err != nil {
|
if _, err := f.sysCtlWrite(param, value); err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f PfFirewall) EnableForwarding(enabled bool) error {
|
func (f PfFirewall) EnableForwarding(enabled bool) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue