From 1a7e6a024992c43ceb75f0e04f05796f6080a45e Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Thu, 2 Jan 2025 22:48:35 +0100 Subject: [PATCH] cleanup unnecessary nullish coalescing operation --- packages/create-cloudflare/src/helpers/compatDate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-cloudflare/src/helpers/compatDate.ts b/packages/create-cloudflare/src/helpers/compatDate.ts index 1a4bca731924..6f83faa44278 100644 --- a/packages/create-cloudflare/src/helpers/compatDate.ts +++ b/packages/create-cloudflare/src/helpers/compatDate.ts @@ -27,7 +27,7 @@ export async function getWorkerdCompatibilityDate() { const match = latestWorkerdVersion.match(/\d+\.(\d{4})(\d{2})(\d{2})\.\d+/); if (match) { - const [, year, month, date] = match ?? []; + const [, year, month, date] = match; const compatDate = `${year}-${month}-${date}`; s.stop(`${brandColor("compatibility date")} ${dim(compatDate)}`);