if block ends with a return statement drop this else and outdent its block

This commit is contained in:
Kent Gruber 2018-05-01 23:06:58 -04:00
parent ea43018146
commit e02e13ab63

View file

@ -85,9 +85,8 @@ func (f PfFirewall) enableParam(param string, enabled bool) error {
if _, err := f.sysCtlWrite(param, value); err != nil {
return err
} else {
return nil
}
return nil
}
func (f PfFirewall) EnableForwarding(enabled bool) error {