Skip to content

Commit 98f3028

Browse files
cjihrigcodebytere
authored andcommitted
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: #31676 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent be55f3e commit 98f3028

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/readline.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ function Interface(input, output, completer, terminal) {
123123
terminal = input.terminal;
124124
historySize = input.historySize;
125125
if (input.tabSize !== undefined) {
126-
const positive = true;
127-
validateUint32(input.tabSize, 'tabSize', positive);
126+
validateUint32(input.tabSize, 'tabSize', true);
128127
this.tabSize = input.tabSize;
129128
}
130129
removeHistoryDuplicates = input.removeHistoryDuplicates;

0 commit comments

Comments
 (0)