Commit 20b5232c authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'improve-unleash-code-quality' into 'master'

Improve unleash code quality

See merge request gitlab-org/gitlab!28792
parents 1d375573 ce90455e
......@@ -72,12 +72,13 @@ module API
def feature_flags
return [] unless unleash_app_name.present?
flags = Operations::FeatureFlagScope.for_unleash_client(project, unleash_app_name)
if Feature.enabled?(:feature_flags_new_version, project)
Operations::FeatureFlagScope.for_unleash_client(project, unleash_app_name) +
Operations::FeatureFlag.for_unleash_client(project, unleash_app_name)
else
Operations::FeatureFlagScope.for_unleash_client(project, unleash_app_name)
flags += Operations::FeatureFlag.for_unleash_client(project, unleash_app_name)
end
flags
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment