Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/hosted-git-info/git-host.js')
-rw-r--r--node_modules/hosted-git-info/git-host.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/hosted-git-info/git-host.js b/node_modules/hosted-git-info/git-host.js
index 9616fbaa6..f9b1ec745 100644
--- a/node_modules/hosted-git-info/git-host.js
+++ b/node_modules/hosted-git-info/git-host.js
@@ -9,8 +9,8 @@ var extend = Object.assign || function _extend (target, source) {
// Don't do anything if source isn't an object
if (source === null || typeof source !== 'object') return target
- var keys = Object.keys(source)
- var i = keys.length
+ const keys = Object.keys(source)
+ let i = keys.length
while (i--) {
target[keys[i]] = source[keys[i]]
}
@@ -56,7 +56,7 @@ GitHost.prototype._fill = function (template, opts) {
vars[key] = value.split('/').map(function (pathComponent) {
return encodeURIComponent(pathComponent)
}).join('/')
- } else {
+ } else if (key !== 'domain') {
vars[key] = encodeURIComponent(value)
}
})