(rubocop) Fix Layout/EmptyLineAfterGuardClause

This commit is contained in:
Tim Sharpe 2019-02-03 12:46:15 +11:00
parent e6d1fbf954
commit e8f420a08c
2 changed files with 5 additions and 0 deletions

View file

@ -13,6 +13,7 @@ class Auth
res_body = JSON.parse(resp.body)
return res_body['token'] if res_body['ok']
raise TokenError, "HTTP #{resp.status}: There was a problem requesting a token:\n#{res_body}"
end
@ -24,6 +25,7 @@ class Auth
response = conn.delete "token/#{token}"
res_body = JSON.parse(response.body)
return res_body if res_body['ok']
raise TokenError, "HTTP #{response.status}: There was a problem deleting a token:\n#{res_body}"
end
@ -36,6 +38,7 @@ class Auth
res_body = JSON.parse(response.body)
return res_body if res_body['ok']
raise TokenError, "HTTP #{response.status}: There was a problem getting the status of a token:\n#{res_body}"
end
end