summaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-12 14:39:06 -0400
committercjihrig <cjihrig@gmail.com>2019-03-25 20:02:10 -0400
commit5de804e636ce577b46027a24941163a421ada472 (patch)
tree42189cffb459d3235ecb7a782526e6677c1e695a /lib/net.js
parentd989e207177f29fe277a010a1d087230aec40a8e (diff)
downloadandroid-node-v8-5de804e636ce577b46027a24941163a421ada472.tar.gz
android-node-v8-5de804e636ce577b46027a24941163a421ada472.tar.bz2
android-node-v8-5de804e636ce577b46027a24941163a421ada472.zip
tools: enable getter-return lint rule
PR-URL: https://github.com/nodejs/node/pull/26615 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index d5a7ba6371..7b4f3f29da 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -495,7 +495,7 @@ Object.defineProperty(Socket.prototype, 'readyState', {
Object.defineProperty(Socket.prototype, 'bufferSize', {
- get: function() {
+ get: function() { // eslint-disable-line getter-return
if (this._handle) {
return this[kLastWriteQueueSize] + this.writableLength;
}