chore: upgrade gofumpt to v0.3.1 (#2028)
This commit is contained in:
13 files changed
+34
-17
No files matched your search
@@ -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,
|
||||
|
||||
@@ -39,7 +39,8 @@ func GetListingScopeIds(
|
||||
recursive bool,
|
||||
// Whether to only return scopes with exact permissions, or whether parent
|
||||
// scopes with appropriate permissions are sufficient
|
||||
directOnly bool) ([]string, map[string]*scopes.ScopeInfo, error) {
|
||||
directOnly bool,
|
||||
) ([]string, map[string]*scopes.ScopeInfo, error) {
|
||||
const op = "GetListingScopeIds"
|
||||
|
||||
// Validation
|
||||
|
||||
@@ -75,7 +75,8 @@ func requestCtxInterceptor(
|
||||
return func(interceptorCtx context.Context,
|
||||
req interface{},
|
||||
_ *grpc.UnaryServerInfo,
|
||||
handler grpc.UnaryHandler) (interface{}, error) {
|
||||
handler grpc.UnaryHandler,
|
||||
) (interface{}, error) {
|
||||
md, ok := metadata.FromIncomingContext(interceptorCtx)
|
||||
if !ok {
|
||||
return nil, errors.New(interceptorCtx, errors.Internal, op, "No metadata")
|
||||
@@ -279,7 +280,8 @@ func workerRequestInfoInterceptor(ctx context.Context, eventer *event.Eventer) (
|
||||
return func(interceptorCtx context.Context,
|
||||
req interface{},
|
||||
srvInfo *grpc.UnaryServerInfo,
|
||||
handler grpc.UnaryHandler) (interface{}, error) {
|
||||
handler grpc.UnaryHandler,
|
||||
) (interface{}, error) {
|
||||
var err error
|
||||
id, err := event.NewId(event.IdPrefix)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user