rubocop: Layout/FirstParameterIndentation, 98

This commit is contained in:
Peter Bhat Harkins 2018-03-19 14:26:14 -05:00
parent 6ae3b6b241
commit e916cf73eb
2 changed files with 7 additions and 11 deletions

View File

@ -16,12 +16,12 @@ class Github
def self.token_and_user_from_code(code)
s = Sponge.new
res = s.fetch(
"https://github.com/login/oauth/access_token",
:post,
:client_id => self.CLIENT_ID,
:client_secret => self.CLIENT_SECRET,
:code => code,
)
"https://github.com/login/oauth/access_token",
:post,
:client_id => self.CLIENT_ID,
:client_secret => self.CLIENT_SECRET,
:code => code,
)
ps = CGI.parse(res)
tok = ps["access_token"].first

View File

@ -66,11 +66,7 @@ StoriesPaginator.new(StoryRepository.new.hottest).get.first
status = title + status
end
res = Twitter.oauth_request(
"/1.1/statuses/update.json",
:post,
"status" => status
)
res = Twitter.oauth_request("/1.1/statuses/update.json", :post, "status" => status)
begin
if res["id_str"].to_s.match(/\d+/)