chore: upgrade gofumpt to v0.3.1 (#2028)

This commit is contained in:
Jim authored and GitHub committed 2022-04-19 11:42:54 -04:00
1 parent ec0f107ef5
commit addbfee593
13 files changed
+34 -17

No files matched your search

+4 -2
View File
@@ -111,7 +111,8 @@ func NewVerifierContext(ctx context.Context,
authTokenRepoFn common.AuthTokenRepoFactory,
serversRepoFn common.ServersRepoFactory,
kms *kms.Kms,
requestInfo *authpb.RequestInfo) context.Context {
requestInfo *authpb.RequestInfo,
) context.Context {
return context.WithValue(ctx, verifierKey, &verifier{
iamRepoFn: iamRepoFn,
authTokenRepoFn: authTokenRepoFn,
@@ -439,7 +440,8 @@ func (v verifier) performAuthCheck(ctx context.Context) (
scopeInfo *scopes.ScopeInfo,
retAcl perms.ACL,
grantTuples []perms.GrantTuple,
retErr error) {
retErr error,
) {
const op = "auth.(verifier).performAuthCheck"
// Ensure we return an error by default if we forget to set this somewhere
retErr = errors.New(ctx, errors.Unknown, op, "default auth error", errors.WithoutEvent())
@@ -19,7 +19,8 @@ import (
func CalculateAuthorizedCollectionActions(ctx context.Context,
authResults VerifyResults,
mapToRange map[resource.Type]action.ActionSet,
scopeId, pin string) (map[string]*structpb.ListValue, error) {
scopeId, pin string,
) (map[string]*structpb.ListValue, error) {
res := &perms.Resource{
ScopeId: scopeId,
Pin: pin,