Skip to content

Reduce indentation by reversing if check#6497

Merged
etimberg merged 1 commit intochartjs:masterfrom
benmccann:indent
Sep 7, 2019
Merged

Reduce indentation by reversing if check#6497
etimberg merged 1 commit intochartjs:masterfrom
benmccann:indent

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