From 903cac3651a9e388f223a5d59a8ce5621cc4c86d Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 7 Nov 2022 23:44:42 +0900 Subject: [PATCH] refactor GitHub.multiple_short_commits_exist? --- Library/Homebrew/utils/github.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 1aacf3099a..78581ee724 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -696,8 +696,7 @@ module GitHub return true if status.success? return true unless output - return true if output[/^Status: (200)/, 1] != "200" - false + output[/^Status: (200)/, 1] != "200" end end