From 98f3028c3069cecca49198dbf53337e82ede9e26 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 7 Feb 2020 10:33:06 -0500 Subject: [PATCH] readline: remove intermediate variable This commit removes an extrea intermediate variable. This makes the call consistent with other uses of validateUint32() in the codebase. PR-URL: https://github.com/nodejs/node/pull/31676 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca --- lib/readline.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/readline.js b/lib/readline.js index 4e3d03f98111a0..4684fe91068b5c 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -123,8 +123,7 @@ function Interface(input, output, completer, terminal) { terminal = input.terminal; historySize = input.historySize; if (input.tabSize !== undefined) { - const positive = true; - validateUint32(input.tabSize, 'tabSize', positive); + validateUint32(input.tabSize, 'tabSize', true); this.tabSize = input.tabSize; } removeHistoryDuplicates = input.removeHistoryDuplicates;