mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-04 09:45:36 -05:00
Reworks commanding structure for less redundancy
Adds command args copying when needed
This commit is contained in:
@@ -22,6 +22,7 @@ export class StashDeleteCommand extends Command {
|
||||
async execute(args: StashDeleteCommandArgs = { confirm: true }) {
|
||||
if (!this.git.repoPath) return undefined;
|
||||
|
||||
args = { ...args };
|
||||
if (args.stashItem === undefined || args.stashItem.stashName === undefined) return undefined;
|
||||
|
||||
if (args.confirm === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user