Skip to content

Commit

Permalink
style: codec.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mengskysama committed Feb 29, 2020
1 parent b2ce238 commit f3dc12a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +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
}
_, err = hex.Decode(dst, src)
return
}

Expand Down

0 comments on commit f3dc12a

Please sign in to comment.