Skip to content

Commit

Permalink
Fix golint warnings (#21)
Browse files Browse the repository at this point in the history
* Better Version comment
* Clean redundant error check
  • Loading branch information
dvrkps authored and aricart committed Feb 12, 2019
1 parent a7fd892 commit b78efb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,7 @@ func parseClaims(s string, target Claims) error {
if err != nil {
return err
}
if err := json.Unmarshal(h, &target); err != nil {
return err
}

return nil
return json.Unmarshal(h, &target)
}

// Verify verifies that the encoded payload was signed by the
Expand Down
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
// Version
// Version is semantic version.
Version = "0.0.5"

// TokenTypeJwt is the JWT token type supported JWT tokens
Expand Down

0 comments on commit b78efb5

Please sign in to comment.