未验证 提交 2c0115ec 编写于 作者: J Joao Moreno

fix compile errors

上级 980fb4b0
......@@ -1597,15 +1597,15 @@ export class Repository {
}
}
async dropStash(index: number): Promise<void> {
async dropStash(index?: number): Promise<void> {
const args = ['stash', 'drop'];
if (typeof index === 'number') {
args.push(`stash@{${index}}`);
}
try {
await this.run(args);
}
try {
await this.run(args);
} catch (err) {
if (/No stash found/.test(err.stderr || '')) {
err.gitErrorCode = GitErrorCodes.NoStashFound;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册