Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryl1 authored Aug 11, 2022
1 parent fd4b1bd commit 8f94910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function listDependenciesS3(path) {

// gets files that have .gz in file name sorted by last modified date desc
var files = data.Contents?.filter((file) => {
file.Key.includes(".gz");
return file.Key.includes(".gz");
}).sort((file1, file2) => file2.LastModified - file1.LastModified);

return files;
Expand Down

0 comments on commit 8f94910

Please sign in to comment.