diff options
author | Michaël Zasso <targos@protonmail.com> | 2016-12-08 10:27:05 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2016-12-10 10:46:42 +0100 |
commit | 4d11c2ce5ce9406fddf6397b03967b2f755e3b5c (patch) | |
tree | 1ba244999ec4a882b4b2a87be525ff7de8a1ab6b /lib/timers.js | |
parent | 0cd1f54fab3f35c6f53a6106cd9b5299c2c67413 (diff) | |
download | android-node-v8-4d11c2ce5ce9406fddf6397b03967b2f755e3b5c.tar.gz android-node-v8-4d11c2ce5ce9406fddf6397b03967b2f755e3b5c.tar.bz2 android-node-v8-4d11c2ce5ce9406fddf6397b03967b2f755e3b5c.zip |
lib,test: use consistent operator linebreak style
We have a tacit rule that for multiline statements, the operator should
be placed before the linebreak. This commit commit fixes the few
violations of this rule in the code base.
This allows us to enable the corresponding ESLint rule.
PR-URL: https://github.com/nodejs/node/pull/10178
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'lib/timers.js')
-rw-r--r-- | lib/timers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/timers.js b/lib/timers.js index 56af3a92d6..a55e265f29 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -473,8 +473,8 @@ function unrefdHandle() { // Make sure we clean up if the callback is no longer a function // even if the timer is an interval. - if (!this.owner._repeat - || typeof this.owner._onTimeout !== 'function') { + if (!this.owner._repeat || + typeof this.owner._onTimeout !== 'function') { this.owner.close(); } } |