Skip to content

Commit

Permalink
fix: add lint ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Dec 4, 2024
1 parent d00fcb4 commit 6219804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server_cached_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ func (it *cacheFallbackIter) Next() bool {
}

switch val.Val.GetSchema() {
//lint:ignore SA1019 // ignore staticcheck
case types.SchemaBitswap:
//lint:ignore SA1019 // ignore staticcheck
if record, ok := val.Val.(*types.BitswapRecord); ok {
return handleRecord(record.ID, types.FromBitswapRecord(record))
}
Expand Down
1 change: 1 addition & 0 deletions server_cached_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func TestCacheFallbackIter(t *testing.T) {

// Create source iterator with bitswap record
sourceIter := newMockResultIter([]iter.Result[types.Record]{
//lint:ignore SA1019 // ignore staticcheck
{Val: &types.BitswapRecord{Schema: types.SchemaBitswap, ID: &pid, Addrs: nil}},
})

Expand Down

0 comments on commit 6219804

Please sign in to comment.