mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
addressing additional comments
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user