Skip to content

Commit 202961c

Browse files
committed
chore: apply formatting
1 parent a6a5605 commit 202961c

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

scripts/sync-docs-webhooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ function createWebhook(repo: string) {
7575

7676
function updateWebhook(repo: string, hookId: number) {
7777
if (dryRun) {
78-
console.log(`[dry-run] update webhook ${hookId} for ${repo} -> ${webhookUrl}`)
78+
console.log(
79+
`[dry-run] update webhook ${hookId} for ${repo} -> ${webhookUrl}`,
80+
)
7981
return
8082
}
8183

src/components/Navbar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ const LazyNavbarAuthControls = React.lazy(() =>
88
default: m.NavbarAuthControls,
99
})),
1010
)
11-
import {
12-
Link,
13-
useLocation,
14-
useMatches,
15-
} from '@tanstack/react-router'
11+
import { Link, useLocation, useMatches } from '@tanstack/react-router'
1612
import { NetlifyImage } from './NetlifyImage'
1713
import {
1814
Code,

src/utils/docs-webhook-sources.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ export type DocsWebhookSource = {
55
repo: string
66
}
77

8-
const docsWebhookSourceMap = libraries.reduce(
9-
(map, library) => {
10-
if (!library.latestBranch) {
11-
return map
12-
}
8+
const docsWebhookSourceMap = libraries.reduce((map, library) => {
9+
if (!library.latestBranch) {
10+
return map
11+
}
1312

14-
const refs = map.get(library.repo) ?? new Set<string>()
15-
refs.add(library.latestBranch)
16-
map.set(library.repo, refs)
13+
const refs = map.get(library.repo) ?? new Set<string>()
14+
refs.add(library.latestBranch)
15+
map.set(library.repo, refs)
1716

18-
return map
19-
},
20-
new Map<string, Set<string>>(),
21-
)
17+
return map
18+
}, new Map<string, Set<string>>())
2219

2320
export const docsWebhookSources = Array.from(docsWebhookSourceMap.entries())
2421
.map(([repo, refs]) => ({

0 commit comments

Comments
 (0)