Skip to content

Commit

Permalink
golint fixups for auth/bearer pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Aug 25, 2022
1 parent d9375ac commit eec4392
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion auth/bearer/docs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package bearer provides middleware and utilities for authenticating API
// operation calls with a Bearer Token.

package bearer
2 changes: 1 addition & 1 deletion auth/bearer/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Token struct {
Expires time.Time
}

// IsExpired returns if the token's Expires time is before or equal to the time
// Expired returns if the token's Expires time is before or equal to the time
// provided. If CanExpires is false, Expired will always return false.
func (t Token) Expired(now time.Time) bool {
if !t.CanExpire {
Expand Down

0 comments on commit eec4392

Please sign in to comment.