From 8b71a1b9e353a3a2390c9ef024765e3d57cb43a2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 20 Aug 2019 00:01:21 -0400 Subject: [PATCH] Prettiers --- src/commands/git/switch.ts | 10 ++++++---- src/views/viewCommands.ts | 1 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/commands/git/switch.ts b/src/commands/git/switch.ts index ca83287..b928e5b 100644 --- a/src/commands/git/switch.ts +++ b/src/commands/git/switch.ts @@ -126,9 +126,9 @@ export class SwitchGitCommand extends QuickCommandBase { ? state.repos[0].formattedName : `${state.repos.length} repositories` }`, - placeholder: `Choose a branch${ - showTags ? ' or tag' : '' - } to switch to${GlyphChars.Space.repeat(3)}(select or enter a reference)`, + placeholder: `Choose a branch${showTags ? ' or tag' : ''} to switch to${GlyphChars.Space.repeat( + 3 + )}(select or enter a reference)`, matchOnDescription: true, items: items, selectedItems: state.branchOrTagOrRef @@ -237,7 +237,9 @@ export class SwitchGitCommand extends QuickCommandBase { ? `${state.createBranch} (from ${state.branchOrTagOrRef.name}) ` : state.branchOrTagOrRef.name, detail: `Will ${ - state.createBranch ? `create and switch to ${state.createBranch} (from ${state.branchOrTagOrRef.name})` : `switch to ${state.branchOrTagOrRef.name}` + state.createBranch + ? `create and switch to ${state.createBranch} (from ${state.branchOrTagOrRef.name})` + : `switch to ${state.branchOrTagOrRef.name}` } in ${ state.repos.length === 1 ? state.repos[0].formattedName diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index b0365d5..9bad5e6 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -263,7 +263,6 @@ export class ViewCommands { if (!(node instanceof ViewRefFileNode)) return undefined; return Container.git.checkout(node.repoPath, node.ref, { fileName: node.fileName }); - } private async switch(node: ViewRefNode) {