FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Reduce indentation by reversing if check by benmccann · Pull Request #6497 · chartjs/Chart.js · GitHub

Reduce indentation by reversing if check - #6497

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

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

Conversation

Copy link
Copy Markdown
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 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL