From 7bd7c235fab93aa833ab05d262b0ea860d197d41 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 7 Jul 2016 15:07:37 -0700 Subject: [PATCH] test: remove unused var from stream2 test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `writes` is assigned but never used. Remove it. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: https://github.com/nodejs/node/pull/7596 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- test/parallel/test-stream2-readable-legacy-drain.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/parallel/test-stream2-readable-legacy-drain.js b/test/parallel/test-stream2-readable-legacy-drain.js index 399771e46a11ed..809f5d8a6f23bc 100644 --- a/test/parallel/test-stream2-readable-legacy-drain.js +++ b/test/parallel/test-stream2-readable-legacy-drain.js @@ -19,10 +19,8 @@ r.on('end', function() { var w = new Stream(); w.writable = true; -var writes = 0; var buffered = 0; w.write = function(c) { - writes += c.length; buffered += c.length; process.nextTick(drain); return false;