[#302] Fix exhaustive linter errors

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-11 18:15:16 +03:00 committed by Alex Vanin
parent 04c0c1b8f5
commit 7e30b0b9c8
2 changed files with 6 additions and 0 deletions

View file

@ -157,6 +157,8 @@ func (v *FormatValidator) ValidateContent(o *Object) error {
return errors.Errorf("(%T) empty member in SG", v)
}
}
default:
return errors.Errorf("(%T) unsupported object type %s", v, o.Type())
}
return nil

View file

@ -177,6 +177,8 @@ func (f *filter) fromNetmap(nf *netmap.Filter) {
f.Op = "AND"
case netmap.OR:
f.Op = "OR"
default:
// do nothing
}
if nf.GetFilters() != nil {
f.Filters = make([]filter, len(nf.GetFilters()))
@ -216,6 +218,8 @@ func (s *selector) fromNetmap(ns *netmap.Selector) {
s.Clause = "same"
case netmap.Distinct:
s.Clause = "distinct"
default:
// do nothing
}
s.Name = ns.GetName()
}