Add and fix nlreturn (new line return)

This commit is contained in:
Kristoffer Dalby
2021-11-14 16:46:09 +01:00
parent d0ef850035
commit 89eb13c6cb
25 changed files with 198 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ func (h *Hosts) UnmarshalJSON(data []byte) error {
hosts[k] = prefix
}
*h = hosts
return nil
}
@@ -73,5 +74,6 @@ func (p ACLPolicy) IsZero() bool {
if len(p.Groups) == 0 && len(p.Hosts) == 0 && len(p.ACLs) == 0 {
return true
}
return false
}