From 6219804546753898ffd6d6772d898d36e557cca1 Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:13:20 +0100 Subject: [PATCH] fix: add lint ignores --- server_cached_router.go | 2 ++ server_cached_router_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/server_cached_router.go b/server_cached_router.go index a9bfa66..d919ba8 100644 --- a/server_cached_router.go +++ b/server_cached_router.go @@ -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)) } diff --git a/server_cached_router_test.go b/server_cached_router_test.go index 95a5010..045afa4 100644 --- a/server_cached_router_test.go +++ b/server_cached_router_test.go @@ -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}}, })