Skip to content

Commit 2c0115e

Browse files
committed
fix compile errors
1 parent 980fb4b commit 2c0115e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/git/src/git.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,15 +1597,15 @@ export class Repository {
15971597
}
15981598
}
15991599

1600-
async dropStash(index: number): Promise<void> {
1600+
async dropStash(index?: number): Promise<void> {
16011601
const args = ['stash', 'drop'];
16021602

16031603
if (typeof index === 'number') {
16041604
args.push(`stash@{${index}}`);
1605+
}
16051606

1606-
try {
1607-
await this.run(args);
1608-
}
1607+
try {
1608+
await this.run(args);
16091609
} catch (err) {
16101610
if (/No stash found/.test(err.stderr || '')) {
16111611
err.gitErrorCode = GitErrorCodes.NoStashFound;

0 commit comments

Comments
 (0)