mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-27 14:57:44 +00:00
fix a few more cop warnings
This commit is contained in:
parent
000144ec60
commit
3cb374cb4a
2 changed files with 2 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ module Instapaper
|
||||||
when WHITESPACE_REGEX, nil
|
when WHITESPACE_REGEX, nil
|
||||||
nil
|
nil
|
||||||
else
|
else
|
||||||
JSON.parse(body, :symbolize_names => true)
|
JSON.parse(body, symbolize_names: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -28,4 +28,4 @@ module Instapaper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Faraday::Response.register_middleware :instapaper_parse_json => Instapaper::API::Response::ParseJson
|
Faraday::Response.register_middleware instapaper_parse_json: Instapaper::API::Response::ParseJson
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ module Instapaper
|
||||||
module API
|
module API
|
||||||
# Defines methods related to highlights
|
# Defines methods related to highlights
|
||||||
module Highlight
|
module Highlight
|
||||||
|
|
||||||
# List highlights for a bookmark
|
# List highlights for a bookmark
|
||||||
def highlights(bookmark_id)
|
def highlights(bookmark_id)
|
||||||
perform_post_with_objects("/api/1.1/bookmarks/#{bookmark_id}/highlights", {}, Instapaper::Highlight)
|
perform_post_with_objects("/api/1.1/bookmarks/#{bookmark_id}/highlights", {}, Instapaper::Highlight)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue