Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,21 +521,21 @@
if (test)
return false;

// good (only for very simple statements and early function return)
if (test) return false;

// good
if (test) {
return false;
}

// bad
// good
function () { return false; }

// good
function () {
return false;
}

// acceptable (only for very simple statements and early function return)
if (test) return false;
```

**[[⬆]](#TOC)**
Expand Down