Skip to content

Commit a35ab95

Browse files
dario-piotrowiczpenalosa
authored andcommitted
cleanup unnecessary nullish coalescing operation (#7658)
1 parent a11b668 commit a35ab95

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)