Skip to content

Commit

Permalink
Update denylist.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
hsanjuan and lidel authored Dec 13, 2024
1 parent cd7383a commit 965a1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion denylist.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ func (dl *Denylist) IsIPNSPathBlocked(name, subpath string) StatusResponse {
// slash) or "<cidV1b32>/" for ipns-key blocking
legacyKey := name + "/" + subpath
if c.Defined() { // we parsed a CID before
legacyCid := cid.NewCidV1(c.Prefix().Codec, c.Hash()).String()
legacyCid := cid.NewCidV1(c.Prefix().Codec, c.Hash()).StringOfBase(mbase.Base32)

Check failure on line 700 in denylist.go

View workflow job for this annotation

GitHub Actions / Compact denylist format test suite

assignment mismatch: 1 variable but cid.NewCidV1(c.Prefix().Codec, c.Hash()).StringOfBase returns 2 values

Check failure on line 700 in denylist.go

View workflow job for this annotation

GitHub Actions / Compact denylist format test suite

undefined: mbase

Check failure on line 700 in denylist.go

View workflow job for this annotation

GitHub Actions / Static, syntax and spelling checks

assignment mismatch: 1 variable but cid.NewCidV1(c.Prefix().Codec, c.Hash()).StringOfBase returns 2 values

Check failure on line 700 in denylist.go

View workflow job for this annotation

GitHub Actions / Static, syntax and spelling checks

undefined: mbase
legacyKey = legacyCid + "/" + subpath
}
status, entry, err = dl.checkDoubleHashWithFn("IsIPNSPathBlocked (legacy)", legacyKey, multihash.SHA2_256)
Expand Down

0 comments on commit 965a1c2

Please sign in to comment.