From 5d62cef27e6c7d42c97ba1575658b97082da4f97 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 27 Jun 2023 17:47:07 +0300 Subject: [PATCH] [#98] Fix linter issues Signed-off-by: Alex Vanin --- netmap/netmap.go | 1 - netmap/policy.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/netmap/netmap.go b/netmap/netmap.go index c9969b6..7da41a8 100644 --- a/netmap/netmap.go +++ b/netmap/netmap.go @@ -234,7 +234,6 @@ func (m NetMap) ContainerNodes(p PlacementPolicy, pivot []byte) ([][]NodeInfo, e } result[i] = append(result[i], flattenNodes(nodes)...) } - } return result, nil diff --git a/netmap/policy.go b/netmap/policy.go index a03d36e..06e1cba 100644 --- a/netmap/policy.go +++ b/netmap/policy.go @@ -374,6 +374,7 @@ func (p *PlacementPolicy) AddFilters(fs ...Filter) { // the result into w. Returns w's errors directly. // // See also DecodeString. +// nolint: funlen func (p PlacementPolicy) WriteStringTo(w io.StringWriter) (err error) { if p.unique { if _, err := w.WriteString("UNIQUE\n"); err != nil {