From 26ac07708ccdd6bf3fa7f99bdde9ec469690e13f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 31 Oct 2021 12:28:46 -0400 Subject: [PATCH] Updates tag quick pick --- src/quickpicks/gitQuickPickItems.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/quickpicks/gitQuickPickItems.ts b/src/quickpicks/gitQuickPickItems.ts index 83ed733abaed9..42e3118563339 100644 --- a/src/quickpicks/gitQuickPickItems.ts +++ b/src/quickpicks/gitQuickPickItems.ts @@ -387,13 +387,13 @@ export namespace TagQuickPickItem { } if (options.ref) { - description = description - ? `${description}${Strings.pad('$(git-commit)', 2, 2)}${GitRevision.shorten(tag.sha)}` - : `${Strings.pad('$(git-commit)', 0, 2)}${GitRevision.shorten(tag.sha)}`; + description = `${description}${Strings.pad('$(git-commit)', description ? 2 : 0, 2)}${GitRevision.shorten( + tag.sha, + )}`; - description = description - ? `${description}${Strings.pad(GlyphChars.Dot, 2, 2)}${tag.formattedDate}` - : tag.formattedDate; + description = `${description ? `${description}${Strings.pad(GlyphChars.Dot, 2, 2)}` : ''}${ + tag.formattedDate + }`; } if (options.message) {