Skip to content

Commit

Permalink
style: codec.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mengskysama authored Feb 28, 2020
1 parent b2ce238 commit d2d69d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@ func (u *UUID) decodeCanonical(t []byte) (err error) {
func (u *UUID) decodeHashLike(t []byte) (err error) {
src := t[:]
dst := u[:]

if _, err = hex.Decode(dst, src); err != nil {
return err
}
return
_, err = hex.Decode(dst, src)
}

// decodeBraced decodes UUID string in format
Expand Down

0 comments on commit d2d69d7

Please sign in to comment.