Fix error when path is null
This commit is contained in:
parent
92666d4a2f
commit
5140be0f47
|
@ -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