Skip to content

Commit

Permalink
remove unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Oct 25, 2024
1 parent e466263 commit e2b0085
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions jwt/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,19 +367,6 @@ func ClaimValueIs(name string, value interface{}) Validator {
}
}

type claimValueError struct {
error
}

func (claimValueError) Is(err error) bool {
_, ok := err.(claimValueError)
return ok
}

func claimverr(f string, args ...interface{}) error {
return claimValueError{fmt.Errorf(f, args...)}
}

func (cv *claimValueIs) Validate(_ context.Context, t Token) error {
var v interface{}
if err := t.Get(cv.name, &v); err != nil {
Expand Down

0 comments on commit e2b0085

Please sign in to comment.