Skip to content

Commit

Permalink
fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
strootje committed Jan 7, 2021
1 parent 4f7317a commit 12649d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clean-webpack-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ class CleanWebpackPlugin {
asset.related) ||
[]) as AssetInfo[];
})
.reduce((allAssets, relatedAssets) => {
return [...allAssets, ...relatedAssets];
.reduce((previousAssets, currentAssets) => {
return [...previousAssets, ...currentAssets];
}, []);

const allAssets = [...assets, ...relatedAssets];
Expand Down

0 comments on commit 12649d8

Please sign in to comment.