Skip to content

Commit

Permalink
main: change deprecated open_api method
Browse files Browse the repository at this point in the history
closes: #29
  • Loading branch information
dawidd6 committed Mar 8, 2021
1 parent 6912230 commit 76805f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def read_brew(*args)
end

# Get user details
user = GitHub.open_api "#{GitHub::API_URL}/user"
user = GitHub::API.open_rest "#{GitHub::API_URL}/user"
user_id = user['id']
user_login = user['login']
user_name = user['name'] || user['login']
Expand Down

0 comments on commit 76805f0

Please sign in to comment.