Skip to content

Commit

Permalink
rubocop: Layout/FirstParameterIndentation, 98
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Mar 19, 2018
1 parent 6ae3b6b commit e916cf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions extras/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def self.oauth_consumer
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

Expand Down
6 changes: 1 addition & 5 deletions script/post_to_twitter
Original file line number Diff line number Diff line change
Expand Up @@ -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+/)
Expand Down

0 comments on commit e916cf7

Please sign in to comment.