Skip to content

Commit 9493b27

Browse files
committed
Make lint happy
1 parent 69779e6 commit 9493b27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/environment/QuerystringKeyEnvironment.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ QuerystringKeyEnvironment.prototype.replaceState = function(path, navigation) {
3131

3232
QuerystringKeyEnvironment.prototype.updatedPath = function(value) {
3333
var path = PathnameEnvironment.prototype.getPath.call(this);
34+
var query;
3435
if (path.indexOf('?') === -1) {
35-
var query = {};
36+
query = {};
3637
query[this.key] = value.slice(1);
3738
return '/?' + qs.stringify(query);
3839
} else {
3940
var splitted = path.split('?');
40-
var query = qs.parse(splitted[1] || '');
41+
query = qs.parse(splitted[1] || '');
4142
query[this.key] = value.slice(1);
4243
return splitted[0] + '?' + qs.stringify(query);
4344
}

0 commit comments

Comments
 (0)