-
-
Notifications
You must be signed in to change notification settings - Fork 873
Cleaned up usages of exceptions and asserts. #86
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
Conversation
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.
Should this be a .count like the others? I wasn't sure as it seemed suspect.
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.
Should be checking for nil, since empty array there would mean that we should not fetch any keys explicitly.
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.
Nit: limit < 0?
3d7e199 to
6d28cba
Compare
|
@nlutsenko diff updated. |
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.
The comment sounds different, intentional?
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.
Copy-pasta spaghetti
|
LGTM, minus nits. Please resolve all of them before merging. |
We no longer do `@throw [NSException exceptionWith...]` anywhere in the code base, replaced usages of `if (conditon) [NSException raise:...` with PFParamter/ConsistencyAssert where appropriate. This is related to #6.
6d28cba to
a4c621c
Compare
Cleaned up usages of exceptions and asserts.
Fixed assertion messages that were unintentionally changed in #86.
We no longer do
@throw [NSException exceptionWith...]anywhere in the code base, replaced usages ofif (conditon) [NSException raise:...with PFParamter/ConsistencyAssert where appropriate.This is related to #6.