utils/github.rb: use parallel assignments rather than indices

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Maxim Belkin 2019-11-21 11:10:43 -06:00
parent 1a0361a57d
commit c7f065b8da
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -341,8 +341,8 @@ module GitHub
end
def check_fork_exists(repo)
username = api_credentials[1]
reponame = repo.split("/")[1]
_, username = api_credentials
_, reponame = repo.split("/")
json = open_api(url_to("repos", username, reponame))
return false if json["message"] == "Not Found"