Skip to content

Commit

Permalink
Update nolint statement
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Mar 22, 2022
1 parent 85d4595 commit f9d1b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tenant/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func WithDefaultResolver(r Resolver) {
// supplied or user.ErrTooManyOrgIDs if there are multiple tenant IDs present.
//
// ignore stutter warning
//nolint:golint
//nolint:revive
func TenantID(ctx context.Context) (string, error) {
return defaultResolver.TenantID(ctx)
}
Expand All @@ -32,7 +32,7 @@ func TenantID(ctx context.Context) (string, error) {
// NormalizeTenantIDs).
//
// ignore stutter warning
//nolint:golint
//nolint:revive
func TenantIDs(ctx context.Context) ([]string, error) {
return defaultResolver.TenantIDs(ctx)
}
Expand Down
2 changes: 1 addition & 1 deletion tenant/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func isSupported(c rune) bool {
// TenantIDsFromOrgID extracts different tenants from an orgID string value
//
// ignore stutter warning
//nolint:golint
//nolint:revive
func TenantIDsFromOrgID(orgID string) ([]string, error) {
return TenantIDs(user.InjectOrgID(context.TODO(), orgID))
}

0 comments on commit f9d1b55

Please sign in to comment.