Skip to content

Commit 5bc580d

Browse files
committed
fix(index): Guard against non-string types
1 parent c931482 commit 5bc580d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var authProtocols = {
2626
var cache = {}
2727

2828
module.exports.fromUrl = function (giturl, opts) {
29+
if (typeof giturl !== 'string') return
2930
var key = giturl + JSON.stringify(opts || {})
3031

3132
if (!(key in cache)) {

0 commit comments

Comments
 (0)