Skip to content

Commit

Permalink
readline: remove intermediate variable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cjihrig authored and codebytere committed Feb 17, 2020
1 parent be55f3e commit 98f3028
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 98f3028

Please sign in to comment.