Skip to content

Commit 3ca46fd

Browse files
committed
Use map instead of for...of
1 parent b8b8bf5 commit 3ca46fd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ export default class BinWrapper {
163163
);
164164
}
165165

166-
const urls = [];
167-
for (const file of files) {
168-
urls.push(file.url);
169-
}
166+
const urls = files.map(file => file.url);
170167

171168
return Promise.all(
172169
urls.map(url =>

0 commit comments

Comments
 (0)