Skip to content

Commit

Permalink
cleanup unnecessary nullish coalescing operation (#7658)
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Jan 2, 2025
1 parent 2e78812 commit 5d90f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-cloudflare/src/helpers/compatDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
Expand Down

0 comments on commit 5d90f4e

Please sign in to comment.