Commit 38df81e9 authored by James Lopez's avatar James Lopez

Merge branch 'stubbed_feature_ruby_2.7_keyword_warning' into 'master'

Fix Ruby 2.7 keyword warning in stubbed_feature.rb

See merge request gitlab-org/gitlab!44092
parents c2f0c989 a87fa7a8
......@@ -29,8 +29,8 @@ module StubbedFeature
end
# Replace #enabled? method with the optional stubbed/unstubbed version.
def enabled?(*args)
feature_flag = super(*args)
def enabled?(*args, **kwargs)
feature_flag = super
return feature_flag unless stub?
# If feature flag is not persisted we mark the feature flag as enabled
......
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