Skip to content

Commit

Permalink
fix: denylist with empty row in file (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Nov 11, 2023
1 parent de42cf7 commit ae464e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/denylist/scripts/denylist.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function denylistUpdateRemoteCmd (url, { env, reason, operation })
} = await getDenylistProperties({ env })

const entries = await getListFromUrl(url)
const bulk = await Promise.all(entries.map(async entry => {
const bulk = await Promise.all(entries.filter(Boolean).map(async entry => {
return {
key: (await cidToAnchor(entry)).anchor,
value: { reason }
Expand Down

0 comments on commit ae464e5

Please sign in to comment.