Skip to content

Commit

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

const setOfAbilities = new Set(abilitiesAsStrings)

/**
* Verify and return Abilities.
*
Expand All @@ -12,8 +14,8 @@ import { abilitiesAsStrings } from '@web3-storage/capabilities'
* @param {string[]} abilities
* @returns {import('@web3-storage/capabilities/types').ServiceAbility[]}
*/
/* c8 ignore next */
export function asAbilities(abilities) {

Check warning on line 18 in packages/w3up-client/src/ability.js

View workflow job for this annotation

GitHub Actions / Test (18)

Missing JSDoc comment

Check warning on line 18 in packages/w3up-client/src/ability.js

View workflow job for this annotation

GitHub Actions / Test (20)

Missing JSDoc comment
const setOfAbilities = new Set(abilitiesAsStrings)
for (const ability of abilities) {
if (
!setOfAbilities.has(
Expand Down

0 comments on commit 049170d

Please sign in to comment.