From a2e85daac5e08173028a1657a1cabb128964846a Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 12 May 2024 20:48:54 -0700 Subject: [PATCH] Update npm.js --- lib/npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/npm.js b/lib/npm.js index 4eb5432479569..f0a133d27a6aa 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -317,7 +317,7 @@ class Npm { }) const { writeFileSync } = require('node:fs') - for (const [file, content] of (error.files || [])) { + for (const [file, content] of error.files) { const filePath = `${this.logPath}${file}` const fileContent = `'Log files:\n${this.logFiles.join('\n')}\n\n${content.trim()}\n` try {