8000 Fixed analyze issues introduced in Xcode 12.5 by paulb777 · Pull Request #8210 · firebase/firebase-ios-sdk · GitHub
[go: up one dir, main page]

Skip to content

Conversation

paulb777
Copy link
Member
@paulb777 paulb777 commented Jun 7, 2021

Screen Shot 2021-06-07 at 7 37 01 AM
Screen Shot 2021-06-07 at 7 37 52 AM

@google-oss-bot
Copy link

Coverage Report

Affected SDKs

No changes between base commit (ac7bcdc) and head commit (d46cc15).

Test Logs

Copy link
Contributor
@maksymmalyhin maksymmalyhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a comment.

@return The reCAPTCHA token if successful.
*/
- (NSString *)reCAPTCHATokenForURL:(NSURL *)URL error:(NSError **)error {
- (nullable NSString *)reCAPTCHATokenForURL:(NSURL *)URL error:(NSError **_Nonnull)error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, it will be safer to check for NULL because there might be cases when compiler and analyzer may not catch nullability issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for checking. I sill think it is safer to assume nullable pointer to make it less probable to accidentally introduce a crash in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #8214

@paulb777 paulb777 merged commit 1402fc3 into master Jun 8, 2021
@paulb777 paulb777 deleted the pb-analyze-auth branch June 8, 2021 14:10
@firebase firebase locked and limited conversation to collaborators Jul 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0