Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Use proper comment for valid() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schneppenheim committed Jun 16, 2020
1 parent fc2613f commit 147f006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ type tenant struct {
Version uint8 `json:"version"`
}

// Valid returns an error in case this tenant had been blacklisted
// Valid returns an error if JWT payload is incomplete
func (t *tenant) Valid() error {
if t.TenantID == "" {
return fmt.Errorf("Tenant is empty")
return fmt.Errorf("tenant is empty")
}

return nil
Expand Down

0 comments on commit 147f006

Please sign in to comment.