We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7b8822 commit bb122e8Copy full SHA for bb122e8
lib/kmdata.rb
@@ -11,13 +11,11 @@ def endpoint
11
end
12
13
def get(path, params = {})
14
- begin
15
- path = path_with_params("/api/#{path}.json", params)
16
- response = http.request(Net::HTTP::Get.new(path))
17
- process(JSON.parse(response.body))
18
- rescue Exception => exception
19
- return false
20
- end
+ path = path_with_params("/api/#{path}.json", params)
+ response = http.request(Net::HTTP::Get.new(path))
+ process(JSON.parse(response.body))
+ rescue Exception => exception
+ return false
21
22
23
private
0 commit comments