Skip to content

Commit

Permalink
fix: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Oct 31, 2024
1 parent 753d61a commit 4c379c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/capability/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema, fail, ok } from '@ucanto/validator'
import { fail, ok } from '@ucanto/validator'
import * as Bytes from 'multiformats/bytes'
import { base58btc } from 'multiformats/bases/base58'

Expand All @@ -12,7 +12,7 @@ import { base58btc } from 'multiformats/bases/base58'
* @param {API.ParsedCapability} claimed
* @param {API.ParsedCapability} delegated
*/
export function equalWith(claimed, delegated) {
export const equalWith = (claimed, delegated) => {
if (delegated.with.endsWith('*')) {
if (!claimed.with.startsWith(delegated.with.slice(0, -1))) {
return fail(`Resource ${claimed.with} does not match delegated ${delegated.with}`)
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/server.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ export const test = {

const content = await Block.encode({ value: 'find me', hasher: sha256, codec: dagCBOR })
const car = CAR.codec.encode({ roots: [content] })
const carBlock = await Block.encode({ value: car, hasher: sha256, codec: CAR.codec })

const index = await BlobIndexUtil.fromShardArchives(content.cid, [car])
const indexBytes = Result.unwrap(await index.archive())
Expand Down

0 comments on commit 4c379c2

Please sign in to comment.