Commit 9236ed07 authored by Alex Kalderimis's avatar Alex Kalderimis

Return the response if it is good

parent a04e6dd7
......@@ -25,9 +25,8 @@ class ExternalWikiService < Service
def execute(_data)
@response = Gitlab::HTTP.get(properties['external_wiki_url'], verify: true) rescue nil
if @response != 200
nil
end
@response if @reponse == 200
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