Browse Source

Avoids double loop

main
Eric Amodio 2 years ago
parent
commit
19dd58130c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 2
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts View File

@ -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
};
}),
stats: commit.stats,
autolinks: autolinks ? Array.from(autolinks.values()).map(serializeAutolink) : undefined,
autolinks: autolinks != null ? [...map(autolinks.values(), serializeAutolink)] : undefined,
};
}

Loading…
Cancel
Save