Add and fix nlreturn (new line return)
This commit is contained in:
parent
d0ef850035
commit
89eb13c6cb
25 changed files with 198 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue