mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-29 05:18:48 -05:00
Add and fix nlreturn (new line return)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user