Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Apr 2, 2017
1 parent 745f054 commit 3d47612
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/jsurl2.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
}
}
}
while(out[out.length - 1] === '') {
while (out[out.length - 1] === '') {
out.pop()
}
out.push(')')
Expand All @@ -194,14 +194,12 @@
}
}

const closeObjRE = /\)+$/g
const noTilde = {'!': true, '(': true, ')': true}
exports.stringify = function (v, options) {
var out = [], t, str = '', len, sep = false, short = options && options.short
encode(v, out)
len = out.length - 1
// until where we have to stringify
while(t = out[len], t === '' || (short && t === ')')) {
while (t = out[len], t === '' || (short && t === ')')) {
len--
}
// extended join('~')
Expand Down

0 comments on commit 3d47612

Please sign in to comment.