dev-cmd/create: handle nil stdin

This commit is contained in:
Rafael Gallani 2025-04-10 21:17:09 -03:00 committed by Mike McQuaid
parent cd57dbabb1
commit ef13b69b03
No known key found for this signature in database

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