From 5f5492ce0c9c0be898f10bd5bd268626ee1965e5 Mon Sep 17 00:00:00 2001 From: anseki Date: Wed, 27 Apr 2016 22:26:19 +0900 Subject: [PATCH] Update for ESLint version --- lib/readline-sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 7da0f1f..35fcb3a 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -694,7 +694,7 @@ function getPhCharlist(param) { from = matches[1].charCodeAt(0); to = matches[2].charCodeAt(0); step = from < to ? 1 : -1; - for (code = from; code !== to + step; code += step) { text += String.fromCharCode(code); } /* ESLint bug */ // eslint-disable-line no-unmodified-loop-condition + for (code = from; code !== to + step; code += step) { text += String.fromCharCode(code); } return text; }