From 19dd58130c6068292cdcc10d0a71c27a1f043fd3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 16 Nov 2022 02:04:40 -0500 Subject: [PATCH] Avoids double loop --- src/webviews/commitDetails/commitDetailsWebviewView.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index 03aba50..4d6b1e5 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -31,7 +31,7 @@ import type { DateTimeFormat } from '../../system/date'; import { debug, getLogScope } from '../../system/decorators/log'; import type { Deferrable } from '../../system/function'; import { debounce } from '../../system/function'; -import { union } from '../../system/iterable'; +import { map, union } from '../../system/iterable'; import type { PromiseCancelledError } from '../../system/promise'; import { getSettledValue } from '../../system/promise'; import type { Serialized } from '../../system/serialize'; @@ -749,7 +749,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase