From c7f065b8da7a0da65bc5a39a156a6a14eb28f834 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Thu, 21 Nov 2019 11:10:43 -0600 Subject: [PATCH] utils/github.rb: use parallel assignments rather than indices Co-Authored-By: Mike McQuaid --- Library/Homebrew/utils/github.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index e9be0ac326..2e6695f4f4 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -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"