Cleans up some command overrides

This commit is contained in:
Eric Amodio
2017-09-05 21:30:07 -04:00
parent 68fcbf713d
commit ece34dba32
8 changed files with 15 additions and 19 deletions

View File

@@ -22,10 +22,8 @@ export class OpenBranchInRemoteCommand extends ActiveEditorCommand {
protected async preExecute(context: CommandContext, args: OpenBranchInRemoteCommandArgs = {}): Promise<any> {
if (isCommandViewContextWithBranch(context)) {
args = { ...args };
args.branch = context.node.branch.name;
args.remote = context.node.branch.getRemote();
return this.execute(context.editor, context.uri, args);
}
return this.execute(context.editor, context.uri, args);