Skip to content

Commit

Permalink
refactor: remove duplicate check for args[i] in tokenize-arg-string…
Browse files Browse the repository at this point in the history
….js (#175)
  • Loading branch information
yuler authored and bcoe committed May 6, 2019
1 parent 69ddfed commit 981e151
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/tokenize-arg-string.js
Expand Up @@ -25,7 +25,6 @@ module.exports = function (argString) {
// don't split the string if we're in matching
// opening or closing single and double quotes.
if (c === opening) {
if (!args[i]) args[i] = ''
opening = null
} else if ((c === "'" || c === '"') && !opening) {
opening = c
Expand Down

0 comments on commit 981e151

Please sign in to comment.