Skip to content

Commit

Permalink
remove unnecessary use of ‘stripLeading’
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Mar 9, 2019
1 parent 1f3a734 commit 90c1edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/doctest.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function processLine(
$test[accum.state].value += '\n' + value;
(accum.state === INPUT ? appendToInput : appendToOutput) ($test);
} else if (accum.state === INPUT) {
value = stripLeading (1, ' ', trimmedLine);
value = trimmedLine;
$test = accum.tests[accum.tests.length - 1];
$test[accum.state = OUTPUT] = {value: value};
output ($test);
Expand Down

0 comments on commit 90c1edf

Please sign in to comment.