From 56373c09d7353e025c0cf00811baf8cdc1e67c53 Mon Sep 17 00:00:00 2001 From: lianxmfor <1034552569@qq.com> Date: Fri, 11 Feb 2022 16:11:40 +0800 Subject: [PATCH] refactor(oomstore/export): if feature no register raise an error --- pkg/oomstore/export.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/oomstore/export.go b/pkg/oomstore/export.go index 7aeca5b1a..5a7bbbcce 100644 --- a/pkg/oomstore/export.go +++ b/pkg/oomstore/export.go @@ -38,9 +38,6 @@ func (s *OomStore) ChannelExport(ctx context.Context, opt types.ChannelExportOpt if err != nil { return nil, err } - if len(features) == 0 { - return nil, nil - } if len(features) != len(opt.FeatureNames) { invalid := features.FindMissingFeatures(opt.FeatureNames)