Skip to content

Commit 464cda2

Browse files
committed
Use a map instead of lsit of lists.
1 parent f60d2e0 commit 464cda2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const PAGES = [
2-
['gh_issue', 'https://github.com/diffplug/selfie/issues/523'],
3-
['gh_pr', 'https://github.com/diffplug/selfie/pull/517'],
4-
] as const
1+
export const PAGES = {
2+
'gh_issue': 'https://github.com/diffplug/selfie/issues/523',
3+
'gh_pr': 'https://github.com/diffplug/selfie/pull/517',
4+
} as const
55

browser-extension/tests/har-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const harCache = new Map<string, any>()
1313

1414
// Create mapping from HAR filename to original URL
1515
const harToUrlMap = Object.fromEntries(
16-
PAGES.map(([key, url]) => [`${key}.har`, url])
16+
Object.entries(PAGES).map(([key, url]) => [`${key}.har`, url])
1717
)
1818

1919
// Extract URL parts for location patching

0 commit comments

Comments
 (0)