Merge pull request #258 from Ephemera/fix-error
Fix error when path is null
This commit is contained in:
commit
0f3bf09194
|
@ -236,7 +236,7 @@ class GitHub extends Adapter {
|
|||
|
||||
$.ajax(cfg)
|
||||
.done((data) => {
|
||||
if (path.indexOf('/git/trees') === 0 && data.truncated) {
|
||||
if (path && path.indexOf('/git/trees') === 0 && data.truncated) {
|
||||
this._handleError({status: 206}, cb)
|
||||
}
|
||||
else cb(null, data)
|
||||
|
|
Loading…
Reference in New Issue