SupportBundles: Replace feature toggle with enabled (#63241)

replace feature toggle with enabled
This commit is contained in:
Jo
2023-02-10 10:12:04 +01:00
committed by GitHub
parent ed626427de
commit c70571c536
8 changed files with 5 additions and 18 deletions

View File

@@ -70,7 +70,7 @@ func ProvideService(cfg *setting.Cfg,
usageStats.RegisterMetricsFunc(s.getUsageStats)
if !features.IsEnabled(featuremgmt.FlagSupportBundles) || !s.enabled {
if !s.enabled {
return s, nil
}
@@ -92,7 +92,7 @@ func ProvideService(cfg *setting.Cfg,
}
func (s *Service) Run(ctx context.Context) error {
if !s.features.IsEnabled(featuremgmt.FlagSupportBundles) {
if !s.enabled {
return nil
}