Commit 26489dbb authored by Baodong's avatar Baodong

Refactor ping method of ZenTao client

parent a03f6bef
......@@ -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