Skip to content

Commit 52220c4

Browse files
committed
lint
1 parent 745f054 commit 52220c4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/jsurl2.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
function eat (a) {
6868
var j, c
6969
for (
70-
var j = a.i;
70+
j = a.i;
7171
j < a.l && (c = a.s.charAt(j), c !== '~' && c !== ')');
7272
j++
7373
) {}
@@ -140,9 +140,8 @@
140140
return out
141141
}
142142

143-
var endTildesRE = /~*$/
144143
function encode (v, out) {
145-
var t, a, T = typeof v, val, prefix
144+
var t, T = typeof v
146145

147146
if (T === 'number') {
148147
out.push(isFinite(v) ? v.toString() : NULL)
@@ -183,7 +182,7 @@
183182
}
184183
}
185184
}
186-
while(out[out.length - 1] === '') {
185+
while (out[out.length - 1] === '') {
187186
out.pop()
188187
}
189188
out.push(')')
@@ -194,14 +193,12 @@
194193
}
195194
}
196195

197-
const closeObjRE = /\)+$/g
198-
const noTilde = {'!': true, '(': true, ')': true}
199196
exports.stringify = function (v, options) {
200197
var out = [], t, str = '', len, sep = false, short = options && options.short
201198
encode(v, out)
202199
len = out.length - 1
203200
// until where we have to stringify
204-
while(t = out[len], t === '' || (short && t === ')')) {
201+
while (t = out[len], t === '' || (short && t === ')')) {
205202
len--
206203
}
207204
// extended join('~')

0 commit comments

Comments
 (0)