[#98] Fix linter issues

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-06-27 17:47:07 +03:00 committed by Evgenii Stratonikov
parent c0c0c588b5
commit 5d62cef27e
2 changed files with 1 additions and 1 deletions

View file

@ -234,7 +234,6 @@ func (m NetMap) ContainerNodes(p PlacementPolicy, pivot []byte) ([][]NodeInfo, e
}
result[i] = append(result[i], flattenNodes(nodes)...)
}
}
return result, nil

View file

@ -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 {