Commit 3b95da3c authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'refactor/zentao_ping' into 'master'

Refactor ping method of ZenTao client

See merge request gitlab-org/gitlab!72563
parents 5389c736 26489dbb
......@@ -16,7 +16,7 @@ module Gitlab
def ping
response = fetch_product(zentao_product_xid) rescue {}
active = response.fetch('deleted') == '0' rescue false
active = response['deleted'] == '0'
if active
{ success: true }
else
......
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