Skip to content

Commit

Permalink
test: added ignore; for 100% testing (this seems wonky)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Perrotte committed Sep 28, 2019
1 parent 921e6dd commit 1fd9d66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -64,6 +64,7 @@ function fromUrl (giturl, opts) {
var pathmatch = gitHostInfo.pathmatch
var matched = parsed.path.match(pathmatch)
if (!matched) return
/* istanbul ignore else */
if (matched[1] !== null && matched[1] !== undefined) {
user = decodeURIComponent(matched[1].replace(/^:/, ''))
}
Expand Down

0 comments on commit 1fd9d66

Please sign in to comment.