Skip to content

Commit 902d52a

Browse files
authored
Remove dead code in managed_identity_credentials.go which was causing compile errors under go1.20 (Azure#19661)
1 parent d5cc623 commit 902d52a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/azidentity/managed_identity_credential.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ func NewManagedIdentityCredential(options *ManagedIdentityCredentialOptions) (*M
8585
return nil, err
8686
}
8787
cred := confidential.NewCredFromTokenProvider(mic.provideToken)
88-
if err != nil {
89-
return nil, err
90-
}
88+
9189
// It's okay to give MSAL an invalid client ID because MSAL will use it only as part of a cache key.
9290
// ManagedIdentityClient handles all the details of authentication and won't receive this value from MSAL.
9391
clientID := "SYSTEM-ASSIGNED-MANAGED-IDENTITY"

0 commit comments

Comments
 (0)