From 809012e6fe9f3d9e42e2e55cdaf7d25bd8c3ac58 Mon Sep 17 00:00:00 2001 From: muXxer Date: Mon, 29 Apr 2024 16:22:29 +0200 Subject: [PATCH] Disable broken linter --- .golangci.yml | 2 +- .../engine/congestioncontrol/scheduler/drr/basicbuffer.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a05e86b39..b17b71756 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -92,7 +92,7 @@ linters: - importas - inamedparam #- interfacebloat - - intrange + #- intrange # TODO: re-enable after https://github.com/ckaznocha/intrange v0.1.2 release is merged in golangci-lint #- ireturn #- lll - loggercheck diff --git a/pkg/protocol/engine/congestioncontrol/scheduler/drr/basicbuffer.go b/pkg/protocol/engine/congestioncontrol/scheduler/drr/basicbuffer.go index c05e69c2f..fabd1e72c 100644 --- a/pkg/protocol/engine/congestioncontrol/scheduler/drr/basicbuffer.go +++ b/pkg/protocol/engine/congestioncontrol/scheduler/drr/basicbuffer.go @@ -290,7 +290,6 @@ func (b *BasicBuffer) dropTail(quantumFunc func(iotago.AccountID) Deficit, maxBu b.size.Dec() droppedBlocks = append(droppedBlocks, tail) - } return droppedBlocks