From 03d06551675b4425cdb47238b879aa405a046daf Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Sat, 13 Apr 2024 19:52:26 +0200 Subject: [PATCH] Update ulid.go --- ulid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulid.go b/ulid.go index c246d72..77e9ddd 100644 --- a/ulid.go +++ b/ulid.go @@ -421,7 +421,7 @@ func (id ULID) Timestamp() time.Time { // IsZero returns true if the ULID is a zero-value ULID, i.e. ulid.Zero. func (id ULID) IsZero() bool { - return bytes.Equal(id[:], Nil[:]) + return id.Compare(Zero) == 0 } // maxTime is the maximum Unix time in milliseconds that can be