3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-01-24 11:14:10 +01:00

fix linter error

See #2052
This commit is contained in:
Shivaram Lingamneni 2023-03-05 02:26:45 -05:00
parent 374cf8ef97
commit db0910d82d

View File

@ -29,7 +29,7 @@ func (u *UUID) UnmarshalJSON(b []byte) (err error) {
return ErrInvalidUUID return ErrInvalidUUID
} }
readLen, err := base64.RawURLEncoding.Decode(u[:], b[1:23]) readLen, err := base64.RawURLEncoding.Decode(u[:], b[1:23])
if readLen != 16 { if err != nil || readLen != 16 {
return ErrInvalidUUID return ErrInvalidUUID
} }
return nil return nil