fix a few more cop warnings

This commit is contained in:
stve 2015-02-10 00:39:54 -05:00
parent 000144ec60
commit 3cb374cb4a
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,7 @@ module Instapaper
when WHITESPACE_REGEX, nil
nil
else
JSON.parse(body, :symbolize_names => true)
JSON.parse(body, symbolize_names: true)
end
end
@ -28,4 +28,4 @@ module Instapaper
end
end
Faraday::Response.register_middleware :instapaper_parse_json => Instapaper::API::Response::ParseJson
Faraday::Response.register_middleware instapaper_parse_json: Instapaper::API::Response::ParseJson

View file

@ -4,7 +4,6 @@ module Instapaper
module API
# Defines methods related to highlights
module Highlight
# List highlights for a bookmark
def highlights(bookmark_id)
perform_post_with_objects("/api/1.1/bookmarks/#{bookmark_id}/highlights", {}, Instapaper::Highlight)