Skip to content

Commit

Permalink
Use single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
webcarrot authored Sep 2, 2016
1 parent 5564f46 commit 5157c41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,19 @@ Route.prototype._makePath = function(routePath, params, query) {
var compiler;
var url;
var strQuery;
if (typeof routePath === "string") {
if (typeof routePath === 'string') {
compiler = cachedCompilers[routePath] || pathToRegexp.compile(routePath);
cachedCompilers[routePath] = compiler;
url = compiler(params);
if (query) {
strQuery = this._queryLib.stringify(query);
if (strQuery) {
url += "?" + strQuery;
url += '?' + strQuery;
}
}
return url;
} else {
throw new TypeError("route path must be a string:" + routePath);
throw new TypeError('route path must be a string:' + routePath);
}
}

Expand Down

0 comments on commit 5157c41

Please sign in to comment.