mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-24 18:14:03 +02:00
fix: add missing await
This commit is contained in:
@@ -205,7 +205,7 @@ export default class AnonymizedFile {
|
|||||||
}
|
}
|
||||||
const out = await this.repository.source?.getFileContent(this);
|
const out = await this.repository.source?.getFileContent(this);
|
||||||
this.repository.model.isReseted = false;
|
this.repository.model.isReseted = false;
|
||||||
this.repository.updateStatus(RepositoryStatus.READY);
|
await this.repository.updateStatus(RepositoryStatus.READY);
|
||||||
return out;
|
return out;
|
||||||
} finally {
|
} finally {
|
||||||
span.end();
|
span.end();
|
||||||
|
|||||||
+2
-1
@@ -163,7 +163,8 @@ export default class PullRequest {
|
|||||||
if (this.status === RepositoryStatus.READY) return;
|
if (this.status === RepositoryStatus.READY) return;
|
||||||
await this.updateStatus(RepositoryStatus.PREPARING);
|
await this.updateStatus(RepositoryStatus.PREPARING);
|
||||||
await this.updateIfNeeded({ force: true });
|
await this.updateIfNeeded({ force: true });
|
||||||
return this.updateStatus(RepositoryStatus.READY);
|
await this.updateStatus(RepositoryStatus.READY);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user