From 5157c412d38efbf123ad74c00aa636c7374526f4 Mon Sep 17 00:00:00 2001 From: webcarrot Date: Fri, 2 Sep 2016 14:38:50 +0200 Subject: [PATCH] Use single quote --- lib/router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/router.js b/lib/router.js index d6e19d7..9e21686 100644 --- a/lib/router.js +++ b/lib/router.js @@ -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); } }