Merge pull request #107 from Arminkhodaei/dev

bug fix in the case of encountering a deleted file commit
This commit is contained in:
Rodrigo Pombo 2019-02-22 15:30:06 -03:00 committed by GitHub
commit f2d6bc4a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,9 @@ async function getContent(repo, sha, path) {
{ headers: getHeaders() }
);
if (contentResponse.status === 404) {
return { content: "" };
}
if (!contentResponse.ok) {
throw contentResponse;
}

View File

@ -20,6 +20,9 @@ async function getContent(repo, sha, path) {
{ headers: getHeaders() }
);
if (contentResponse.status === 404) {
return { content: "" };
}
if (!contentResponse.ok) {
throw contentResponse;
}