Skip to content

Commit 1391bd9

Browse files
committed
removing lint exceptions and correcting embedded field violation
1 parent 188036c commit 1391bd9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/aws/sts_provisioner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (p assumeRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, erro
271271
return aws.Credentials{}, err
272272
}
273273

274-
err = p.stsCacheWriter.Put(credentials) //nolint:staticcheck // QF1008 explicit reads more clearly here
274+
err = p.Put(credentials)
275275
if err != nil {
276276
return aws.Credentials{}, err
277277
}
@@ -308,7 +308,7 @@ func (p mfaSessionTokenProvider) Retrieve(ctx context.Context) (aws.Credentials,
308308
return aws.Credentials{}, err
309309
}
310310

311-
err = p.stsCacheWriter.Put(credentials) //nolint:staticcheck //QF1008 explicit reads more clearly here
311+
err = p.Put(credentials)
312312
if err != nil {
313313
return aws.Credentials{}, err
314314
}

sdk/rpc/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (t *RPCServer) ExecutableNeedsAuth(req proto.ExecutableNeedsAuthRequest, re
107107
needsAuth, ok := t.needsAuth[req.ExecutableID]
108108
if !ok || needsAuth == nil {
109109
return &errFunctionFieldNotSet{
110-
objName: req.ExecutableID.String(), //nolint:staticcheck //QF1008 explicit reads more clearly here
110+
objName: req.String(),
111111
funcName: "NeedsAuth",
112112
}
113113
}
@@ -134,7 +134,7 @@ func (t *RPCServer) CredentialImport(req proto.ImportCredentialRequest, resp *sd
134134
importer, ok := t.importers[req.CredentialID]
135135
if !ok || importer == nil {
136136
return &errFunctionFieldNotSet{
137-
objName: req.CredentialID.String(), //nolint:staticcheck //QF1008 explicit reads more clearly here
137+
objName: req.String(),
138138
funcName: "Importer",
139139
}
140140
}

0 commit comments

Comments
 (0)