Skip to content

Commit 8011811

Browse files
refactor: replace for loop with for...of loop
1 parent f1473ec commit 8011811

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ export function App() {
5757
const handleDownloadAll = useCallback(async () => {
5858
const completedImages = images.filter((img) => img.status === "complete");
5959

60-
for (let i = 0; i < completedImages.length; i++) {
61-
const image = completedImages[i];
62-
60+
for (const image of completedImages) {
6361
if (image.blob && image.outputType) {
6462
const link = document.createElement("a");
6563
link.href = URL.createObjectURL(image.blob);

0 commit comments

Comments
 (0)