Commit 6ac55936 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Refactor Feature.flipper method

parent 01b6b8336181
...@@ -72,7 +72,11 @@ ...@@ -72,7 +72,11 @@
end end
def flipper def flipper
@flipper ||= (Gitlab::SafeRequestStore[:flipper] ||= build_flipper_instance) if
Gitlab::SafeRequestStore[:flipper] ||= build_flipper_instance
@flipper ||= build_flipper_instance
end end
def build_flipper_instance def build_flipper_instance
Supports Markdown
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