dev-cmd/create: handle nil stdin
This commit is contained in:
parent
cd57dbabb1
commit
ef13b69b03
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user