Skip to content

Commit 2d45c84

Browse files
committed
[aws/sts_provisioner.go] Remove hasRegion
Now not used by the error check below, so removing.
1 parent cd33c6b commit 2d45c84

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

plugins/aws/sts_provisioner.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ func resolveLocalAnd1PasswordConfigurations(itemFields map[sdk.FieldName]string,
227227
region = defaultRegion
228228
}
229229

230-
hasRegion := hasDefaultRegion || hasRegularRegion
231-
232230
// only 1Password OTPs are supported
233231
if awsConfig.MfaToken != "" || awsConfig.MfaProcess != "" || awsConfig.MfaPromptMethod != "" {
234232
return fmt.Errorf("only 1Password-backed OTP authentication is supported by the MFA worklfow of the AWS shell plugin")

0 commit comments

Comments
 (0)