Skip to content

Commit

Permalink
Use destructure syntax for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
pkong-ds committed Aug 29, 2024
1 parent 05861c4 commit e4bcf46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/download/_downloadPythonPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e4bcf46

Please sign in to comment.