Skip to content

Commit 5d90f4e

Browse files
cleanup unnecessary nullish coalescing operation (#7658)
1 parent 2e78812 commit 5d90f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-cloudflare/src/helpers/compatDate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function getWorkerdCompatibilityDate() {
2727
const match = latestWorkerdVersion.match(/\d+\.(\d{4})(\d{2})(\d{2})\.\d+/);
2828

2929
if (match) {
30-
const [, year, month, date] = match ?? [];
30+
const [, year, month, date] = match;
3131
const compatDate = `${year}-${month}-${date}`;
3232

3333
s.stop(`${brandColor("compatibility date")} ${dim(compatDate)}`);

0 commit comments

Comments
 (0)