Skip to content

Commit ef45746

Browse files
remove unnecessary double map
1 parent d031add commit ef45746

File tree

1 file changed

+1
-2
lines changed
  • packages/wrangler/src/type-generation

1 file changed

+1
-2
lines changed

packages/wrangler/src/type-generation/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,7 @@ async function generateTypes(
301301
for (const [varName, varInfo] of vars) {
302302
const varValueTypes = new Set(
303303
varInfo
304-
.map(({ value }) => value)
305-
.map((varValue) => {
304+
.map(({ value: varValue }) => {
306305
if (!strictVars) {
307306
if (Array.isArray(varValue)) {
308307
const typesInArray = [

0 commit comments

Comments
 (0)