Commit d1c5f97a authored by Alex Kalderimis's avatar Alex Kalderimis

Eliminate @response instance variable

parent 939d3d48
......@@ -29,9 +29,10 @@ class ExternalWikiService < Service
end
def execute(_data)
@response = Gitlab::HTTP.get(properties['external_wiki_url'], verify: true) rescue nil
@response.body if @response.code == 200
response = Gitlab::HTTP.get(properties['external_wiki_url'], verify: true)
response.body if response.code == 200
rescue
nil
end
def self.supported_events
......
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