Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Nov 30, 2023
1 parent f6daebe commit 89c1284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async function plugins(config, file) {
list = config.plugins.filter(Boolean)
} else {
list = Object.entries(config.plugins)
.filter(([plugin, options]) => {
return options !== false ? plugin : false
.filter(([, options]) => {
return options !== false
})
.map(([plugin, options]) => {
return load(plugin, options, file)
Expand Down

0 comments on commit 89c1284

Please sign in to comment.