mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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 <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 file changed
+1
-2
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user