summaryrefslogtreecommitdiff
path: root/lib/_stream_readable.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-03-02 02:44:18 +0000
committerAnatoli Papirovski <apapirovski@mac.com>2018-03-04 15:33:18 +0100
commitf2d93795bfe61a3260bf743d2247b56b83fc6f70 (patch)
tree2edc3c4ced9bc6309e3a93c3af474adf16933187 /lib/_stream_readable.js
parent7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1 (diff)
downloadandroid-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.tar.gz
android-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.tar.bz2
android-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.zip
lib,test: remove yoda statements
PR-URL: https://github.com/nodejs/node/pull/18746 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r--lib/_stream_readable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js
index 5cdc0864a0..ba231ccda9 100644
--- a/lib/_stream_readable.js
+++ b/lib/_stream_readable.js
@@ -838,7 +838,7 @@ function resume_(stream, state) {
Readable.prototype.pause = function() {
debug('call pause flowing=%j', this._readableState.flowing);
- if (false !== this._readableState.flowing) {
+ if (this._readableState.flowing !== false) {
debug('pause');
this._readableState.flowing = false;
this.emit('pause');