Skip to content

Commit fa8f294

Browse files
committed
fix syntax
1 parent 9d50489 commit fa8f294

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/prometheus/api_client/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def get(command, options)
3333
def run_command(command, options)
3434
response = get(command, options)
3535

36-
result = JSON.parse(response.body)["data"]
36+
JSON.parse(response.body)['data']
3737
rescue
38-
fail RequestError, "Bad response from server"
38+
raise RequestError, 'Bad response from server'
3939
end
4040
end
4141
end

0 commit comments

Comments
 (0)