Skip to content

Commit

Permalink
Tiny simplification for err check
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Sep 8, 2018
1 parent 370558f commit 99a9299
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ func (u *UUID) decodeHashLike(t []byte) error {
src := t[:]
dst := u[:]

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

// decodeBraced decodes UUID strings that are using the following formats:
Expand Down

0 comments on commit 99a9299

Please sign in to comment.