From c2db2a54a1b89be7778dddd252e99a082b4d1868 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 11 Jan 2021 19:31:23 +0300 Subject: [PATCH] [#243] Fix exhaustive linter errors Signed-off-by: Alex Vanin --- pkg/netmap/filter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/netmap/filter.go b/pkg/netmap/filter.go index 531645ed..68388020 100644 --- a/pkg/netmap/filter.go +++ b/pkg/netmap/filter.go @@ -139,6 +139,8 @@ func (c *Context) matchKeyValue(f *Filter, b *Node) bool { return attr < c.numCache[f] case OpLE: return attr <= c.numCache[f] + default: + // do nothing and return false } } // will not happen if context was created from f (maybe panic?)