missing await

This commit is contained in:
Joao Moreno
2018-09-19 11:38:49 +02:00
parent 5f15e3ecb4
commit ba076500a8

View File

@@ -1267,12 +1267,12 @@ export class Repository {
async popStash(index?: number): Promise<void> {
const args = ['stash', 'pop'];
this.popOrApplyStash(args, index);
await this.popOrApplyStash(args, index);
}
async applyStash(index?: number): Promise<void> {
const args = ['stash', 'apply'];
this.popOrApplyStash(args, index);
await this.popOrApplyStash(args, index);
}
private async popOrApplyStash(args: string[], index?: number): Promise<void> {
@@ -1293,7 +1293,6 @@ export class Repository {
}
}
getStatus(limit = 5000): Promise<{ status: IFileStatus[]; didHitLimit: boolean; }> {
return new Promise<{ status: IFileStatus[]; didHitLimit: boolean; }>((c, e) => {
const parser = new GitStatusParser();