mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SupportBundles: Replace feature toggle with enabled (#63241)
replace feature toggle with enabled
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user