From ce6aca13f00f30074e65873b2df7464338d5c385 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Wed, 30 Sep 2020 17:55:12 -0700 Subject: [PATCH] tailcfg: add yet another IsZero method Signed-off-by: Josh Bleecher Snyder --- tailcfg/tailcfg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index e90e63c4c..9c01c8dc8 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -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 {