mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-03 10:25:50 +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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue