Skip to content
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

Cleanup assertions, convert to macros where possible. #22

Merged
merged 1 commit into from Aug 17, 2015

Conversation

nlutsenko
Copy link
Contributor

Improved many places where we do weird assertions, or where we use a condition but could have used a macro. Also fixed some typos.
Improves the bigger enhancement request in #6

format:@"A role's name can only contain alphanumeric characters, _, -, and spaces."];
}
if ([key isEqualToString:@keypath(PFRole, name)]) {
PFConsistencyAssert(self.objectId, @"A role's name can only be set before it has been saved.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong.

@richardjrossiii
Copy link
Contributor

Too much boolean logic for a friday evening :)

@nlutsenko
Copy link
Contributor Author

Too much indeed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants