Skip to content

Commit 3a9dab6

Browse files
committed
Fix condition to log error
1 parent 9c774ad commit 3a9dab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IdentityCore/src/requests/MSIDInteractiveTokenRequest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ - (void)updateCustomHeadersForFRTSupportIfNeeded
149149
{
150150
NSError *error = nil;
151151
MSIDIsFRTEnabledStatus frtEnabledStatus = [credentialCache checkFRTEnabled:self.requestParameters error:&error];
152+
enableFRT = (frtEnabledStatus == MSIDIsFRTEnabledStatusEnabled);
152153

153-
if (!error)
154+
if (error)
154155
{
155156
MSID_LOG_WITH_CTX(MSIDLogLevelError, self.requestParameters, @"Error when checking if FRT is enabled: error code: %@", error);
156-
enableFRT = (frtEnabledStatus == MSIDIsFRTEnabledStatusEnabled);
157157
}
158158
}
159159
}

0 commit comments

Comments
 (0)