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

Don't implement keyPathsForValuesAffectingValueForKey if it will do n… #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanm
Copy link
Contributor

@seanm seanm commented Oct 18, 2024

…othing but call super

If there are no noninheritedAttributes then the for loop will do nothing, and the whole method does nothing but call super really.

So where that's the case, just don't implement the method at all.

There are other cases where the for loop could end up doing nothing, this doesn't eliminate all such cases, just this one.

…othing but call super

If there are no `noninheritedAttributes` then the `for` loop will do nothing, and the whole method does nothing but call super really.

So where that's the case, just don't implement the method at all.

There are other cases where the `for` loop could end up doing nothing, this doesn't eliminate all such cases, just this one.
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.

1 participant