-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Move repeated code to removeAllChildren #2339
Conversation
Somewhere else we use |
@spicyj |
@spicyj I can't find that anywhere. Perhaps you're thinking of |
Yeah, I guess that's what I was thinking of. |
@zpao This seems like a straight-forward refactor to me, agreed? :) EDIT: Hmm, it went from 3 to 2 locations because of a recent PR, perhaps not as meaningful anymore? |
Ok sure. Let's make lint pass though :) I think this is a special case of assignment so just disable the rule in the file (there were a couple others I did this for in my eslint PR). |
@zpao Ah, |
We’re trying to get better at reviewing PRs timely but it’s an ongoing process. For now I’m just cleaning up stale PRs that didn’t get merged for one reason or another, and in this case unfortunately it seems like a plain oversight due to it being low priority. Since it’s a tiny change I’m not sure whether you are interested in resubmitting it, but please feel free to. For now, I’m closing as it doesn’t merge cleanly anymore. |
What the title says.
grunt test