Skip to content

Commit

Permalink
addressing additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
drew212 committed Jul 15, 2019
1 parent 528f580 commit d235f18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/git/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1526,13 +1526,13 @@ export class Repository {
}
}

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

try {
if (typeof index === 'number') {
args.push(`stash@{${index}}`);
if (typeof index === 'number') {
args.push(`stash@{${index}}`);

try {
await this.run(args);
}
} catch (err) {
Expand Down

0 comments on commit d235f18

Please sign in to comment.