addressing additional comments

This commit is contained in:
Drew Cross
2019-07-14 17:49:22 -07:00
parent 528f5805e7
commit d235f183c6

View File

@@ -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) {