From d6fc7e3af4f8888b0d80d73287314b14d3c7f86e Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 17 Feb 2018 03:58:50 +0100 Subject: doc: enable eslint prefer-template rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/18831 Reviewed-By: Luigi Pinca Reviewed-By: Matheus Marchini Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Anatoli Papirovski Reviewed-By: Colin Ihrig --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/api/stream.md') diff --git a/doc/api/stream.md b/doc/api/stream.md index c72873c466..20eaa95bc1 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1852,7 +1852,7 @@ class Counter extends Readable { if (i > this._max) this.push(null); else { - const str = '' + i; + const str = String(i); const buf = Buffer.from(str, 'ascii'); this.push(buf); } -- cgit v1.2.3