Commit 924a013b authored by Quang-Minh Nguyen's avatar Quang-Minh Nguyen

Fix error when clear an empty configuration

parent 088bd77d
...@@ -140,7 +140,7 @@ module Gitlab ...@@ -140,7 +140,7 @@ module Gitlab
# Clear configuration # Clear configuration
def self.clear_configuration def self.clear_configuration
@proxy = nil @proxy = nil
remove_instance_variable(:@feature_available) remove_instance_variable(:@feature_available) if defined?(@feature_available)
end end
def self.active_record_models def self.active_record_models
......
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