Skip to content

Commit 0971b54

Browse files
jamesmengofrandiox
andcommitted
Remove unnecessary map
Co-authored-by: Fran Dios <[email protected]>
1 parent 58d3ee8 commit 0971b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/theme/src/cli/utilities/theme-uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ async function handleFailedUploads(
432432
function reportFailedUploads(uploadResults: Map<string, Result>) {
433433
for (const [key, result] of uploadResults.entries()) {
434434
if (!result.success) {
435-
const errorMessage = result.errors?.asset?.map((err) => err).join('\n') ?? 'File upload failed'
435+
const errorMessage = result.errors?.asset?.join('\n') ?? 'File upload failed'
436436
renderThrownError(key, new Error(errorMessage))
437437
}
438438
}

0 commit comments

Comments
 (0)