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

Reduce indentation by reversing if check #6497

Merged
merged 1 commit into from
Sep 7, 2019
Merged

Conversation

benmccann
Copy link
Contributor

This should improve readability of these methods.

All this does is reduce indentation by making the change below:

Previously:

if (display) {
    ...
}

Now:

if (!display) {
    return;
}
....

@etimberg etimberg merged commit ce8ee02 into chartjs:master Sep 7, 2019
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
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.

3 participants