From fbc75bdb956ae77bc03c0641d7f96cd743d9bd50 Mon Sep 17 00:00:00 2001 From: Bojan Djurkovic Date: Thu, 30 Mar 2017 20:37:26 -0300 Subject: [PATCH] fix code style by removing semicolons --- src/core/route/hash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/route/hash.js b/src/core/route/hash.js index 32c5660..fd725b8 100644 --- a/src/core/route/hash.js +++ b/src/core/route/hash.js @@ -66,14 +66,14 @@ export function parse (path = window.location.href) { * @param {object} qs query params */ export function toURL (path, params) { - const inline = path[0] === '#'; + const inline = path[0] === '#' const route = parse(replaceSlug(path)) route.query = merge({}, route.query, params) path = route.path + stringifyQuery(route.query) path = path.replace(/\.md(\?)|\.md$/, '$1') - if (inline) path = currentPath + path; + if (inline) path = currentPath + path return cleanPath('#/' + path) }