Skip to content

Commit

Permalink
reformat into multiple lines to appease the no-use-before-define rule
Browse files Browse the repository at this point in the history
  • Loading branch information
elidoran committed Dec 17, 2016
1 parent 21e6618 commit 788a2a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/parse.js
Expand Up @@ -22,7 +22,11 @@ var parseValues = function parseValues(str, options) {

for (var i = 0; i < parts.length; ++i) {
var part = parts[i];
var pos = (pos = part.indexOf(']=')) === -1 ? part.indexOf('=') : pos + 1;

var pos = part.indexOf(']=') + 1;
if (pos === 0) {
pos = part.indexOf('=');
}

var key, val;
if (pos === -1) {
Expand Down

0 comments on commit 788a2a7

Please sign in to comment.