mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00: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:
parent
63f10b9f0d
commit
efec6811b6
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user