mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
perf: improve the perf of Anonymous GitHub
This commit is contained in:
@@ -39,7 +39,7 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
|
||||
const ghRes = await octokit.rest.git.getBlob({
|
||||
owner: this.githubRepository.owner,
|
||||
repo: this.githubRepository.repo,
|
||||
file_sha: file.sha,
|
||||
file_sha: await file.sha(),
|
||||
});
|
||||
if (!ghRes.data.content && ghRes.data.size != 0) {
|
||||
throw new AnonymousError("file_not_accessible", {
|
||||
|
||||
Reference in New Issue
Block a user