-
Notifications
You must be signed in to change notification settings - Fork 130
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
Alter api key validation to log warning #492
Conversation
789ebef
to
7f86293
Compare
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.
LGTM as long as we're confident in the compile-time null check for which I'd like @robinmacharg's input.
829977b
to
8a91e17
Compare
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.
Actually, from discussion on the Android/JS changes: we should be throwing an error if the API key is empty so unfortunately I think this means we need to reinstate the error parameter...
Discussed IRL and agreed with @fractalwrench that the proposed changes are probably the more preferable - either way we have a slight spec deviation, but with this implementation it doesn't affect the signature. |
Fixed a compile issue with the mazerunner scenarios and verified by running the breadcrumb scenario manually. |
From Apples dev blog: "The compiler will tell you if you try to break the rules." |
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.
LGTM.
Goal
Alters api key validation so that an error is logged and configuration is populated as normal.
This has the side effect of allowing the NSError parameter to be removed from
initWithApiKey
as it is no longer populated in any codepath.Changeset
initWithApiKey:
signature by removingNSError
parameterinitWithApiKey
to log an error and continue construction rather than returning nilTests
Relied on existing test coverage which was updated to use new method signatures.