We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d50489 commit fa8f294Copy full SHA for fa8f294
1 file changed
lib/prometheus/api_client/client.rb
@@ -33,9 +33,9 @@ def get(command, options)
33
def run_command(command, options)
34
response = get(command, options)
35
36
- result = JSON.parse(response.body)["data"]
+ JSON.parse(response.body)['data']
37
rescue
38
- fail RequestError, "Bad response from server"
+ raise RequestError, 'Bad response from server'
39
end
40
41
0 commit comments