Style tweaks

This commit is contained in:
MICHAEL JACKSON
2017-11-25 20:28:55 -08:00
parent 847e55cd0b
commit b06de06d89
2 changed files with 23 additions and 21 deletions

View File

@ -1,9 +1,9 @@
function createPackageURL(packageName, version, filename, search) {
let pathname = `/${packageName}`
if (version != null) pathname += `@${version}`
if (filename) pathname += filename
if (search) pathname += search
return pathname
function createPackageURL(packageName, version, pathname, search) {
let url = `/${packageName}`
if (version != null) url += `@${version}`
if (pathname) url += pathname
if (search) url += search
return url
}
module.exports = createPackageURL