-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for Network Integration #185
Conversation
@@ -31,7 +31,7 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)httpResponse data:(NSData * | |||
{ | |||
NSMutableDictionary *jsonObject = [[super responseObjectForResponse:httpResponse data:data error:error] mutableCopy]; | |||
|
|||
if (error) { return nil; } | |||
if (error && *error) { return nil; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically, we shouldn't expect error to be not nil and change method's behavior based on it. So, it would be better, if we added a local error variable, check for that one to return nil and only check for argument error to assign it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for removing the unnecessary dispatch main 👍
MSIDAADAuthorityValidationRequest
MSIDAADResponseSerializer.m
which causes nil result for json parsingmsidAddParameters
which throws the existing parameters away