tailcfg: add yet another IsZero method
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>reviewable/pr802/r1
parent
070dfa0c3d
commit
ce6aca13f0
|
@ -33,6 +33,10 @@ func (u UserID) IsZero() bool {
|
|||
|
||||
type LoginID ID
|
||||
|
||||
func (u LoginID) IsZero() bool {
|
||||
return u == 0
|
||||
}
|
||||
|
||||
type NodeID ID
|
||||
|
||||
func (u NodeID) IsZero() bool {
|
||||
|
|
Loading…
Reference in New Issue