From e4bcf46adfd15dedee912cbc5b4feb70c9e05b70 Mon Sep 17 00:00:00 2001 From: pkong-ds Date: Fri, 30 Aug 2024 03:14:23 +0800 Subject: [PATCH] Use destructure syntax for readability --- src/pages/download/_downloadPythonPackage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/download/_downloadPythonPackage.js b/src/pages/download/_downloadPythonPackage.js index da2461f..6359d2e 100644 --- a/src/pages/download/_downloadPythonPackage.js +++ b/src/pages/download/_downloadPythonPackage.js @@ -11,7 +11,8 @@ async function allStorage() { .then(function (generatedMockups) { generatedMockups.forEach(function (mockup) { if (mockup.status === "success") { - values.set(mockup.results[0], mockup.results[1]); + const [filename, fileBytes] = mockup.results; + values.set(filename, fileBytes); } else { values.set(mockup.image, null); }