Skip to content

Commit 5079d0e

Browse files
committed
Update confidential_test.go
Removed un necessary conditions
1 parent fe5f262 commit 5079d0e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/confidential/confidential_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,11 +2148,8 @@ func TestWithAttribute(t *testing.T) {
21482148

21492149
ctx := context.Background()
21502150
var ar AuthResult
2151-
if tt.attrValue != "" {
2152-
ar, err = client.AcquireTokenByCredential(ctx, tokenScope, WithAttribute(tt.attrValue))
2153-
} else {
2154-
ar, err = client.AcquireTokenByCredential(ctx, tokenScope, WithAttribute(tt.attrValue))
2155-
}
2151+
2152+
ar, err = client.AcquireTokenByCredential(ctx, tokenScope, WithAttribute(tt.attrValue))
21562153

21572154
if err != nil {
21582155
t.Fatalf("AcquireTokenByCredential failed: %v", err)

0 commit comments

Comments
 (0)