Skip to content

Conversation

@paulb777
Copy link
Member

Fix #3777

#no-changelog

@paulb777 paulb777 marked this pull request as draft September 10, 2020 22:56
@paulb777 paulb777 added this to the Firebase 7 milestone Sep 10, 2020
@paulb777 paulb777 marked this pull request as ready for review September 11, 2020 00:15
@paulb777 paulb777 requested a review from ryanwilson September 11, 2020 14:10
* Creates an error for failing to configure a subspec service. This method is called by each
* FIRApp notification listener.
*/
+ (NSError *)errorForSubspecConfigurationFailureWithDomain:(NSString *)domain
Copy link
Member

Choose a reason for hiding this comment

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

This method is only used once in FDL and once in RC - think it's worth keeping it in Core for a ~5 line implementation? Diff wise it'd probably be less LOC to just inline the implementation at both call sites, and cleans up Core.

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.

Comment on lines 188 to 191
error = [self errorForSubspecConfigurationFailureWithDomain:kFirebaseDurableDeepLinkErrorDomain
errorCode:FIRErrorCodeDurableDeepLinkFailed
service:@"DynamicLinks"
reason:errorDescription];
Copy link
Member

Choose a reason for hiding this comment

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

Since this call is only used once and it's the same number of lines, I think this could even be inlined.

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. Thanks!

@paulb777 paulb777 merged commit 0a87c31 into firebase7-main Sep 17, 2020
@paulb777 paulb777 deleted the pb-rm-errors7 branch September 17, 2020 22:31
@firebase firebase locked and limited conversation to collaborators Oct 18, 2020
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.

4 participants