Skip to content

Commit

Permalink
fix: c8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed May 7, 2024
1 parent d72d083 commit f5055b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/w3up-client/src/ability.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { abilitiesAsStrings } from '@web3-storage/capabilities'

const setOfAbilities = new Set(abilitiesAsStrings)

/**
* Verify and return Abilities.
*
Expand All @@ -15,6 +13,7 @@ const setOfAbilities = new Set(abilitiesAsStrings)
* @returns {import('@web3-storage/capabilities/types').ServiceAbility[]}
*/
export function asAbilities(abilities) {
const setOfAbilities = new Set(abilitiesAsStrings)
for (const ability of abilities) {
if (
!setOfAbilities.has(
Expand Down

0 comments on commit f5055b7

Please sign in to comment.