Merge pull request #19741 from rafaelgallani/master

dev-cmd/create: Handle nil stdin
This commit is contained in:
Mike McQuaid 2025-04-11 11:12:48 +00:00 committed by GitHub
commit 458512183b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,8 +240,7 @@ module Homebrew
sig { returns(T.nilable(String)) }
def __gets
gots = $stdin.gets.chomp
gots.empty? ? nil : gots
$stdin.gets&.presence&.chomp
end
end
end