utils/github.rb: use parallel assignments rather than indices
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
1a0361a57d
commit
c7f065b8da
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user