From db0910d82d7c850d385277e2fd5b92d8f9e796ba Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 5 Mar 2023 02:26:45 -0500 Subject: [PATCH] fix linter error See #2052 --- irc/utils/uuid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/utils/uuid.go b/irc/utils/uuid.go index 254dff53..099fa8cd 100644 --- a/irc/utils/uuid.go +++ b/irc/utils/uuid.go @@ -29,7 +29,7 @@ func (u *UUID) UnmarshalJSON(b []byte) (err error) { return ErrInvalidUUID } readLen, err := base64.RawURLEncoding.Decode(u[:], b[1:23]) - if readLen != 16 { + if err != nil || readLen != 16 { return ErrInvalidUUID } return nil