Skip to content

Commit

Permalink
formula_assertions: Fix type of cmd param in pipe_output
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Jul 17, 2024
1 parent 835c2f2 commit 1466792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/formula_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def shell_output(cmd, result = 0)
# optionally asserts the exit status.
#
# @api public
sig { params(cmd: String, input: T.nilable(String), result: T.nilable(Integer)).returns(String) }
sig { params(cmd: T.any(Pathname, String), input: T.nilable(String), result: T.nilable(Integer)).returns(String) }
def pipe_output(cmd, input = nil, result = nil)
ohai cmd
output = IO.popen(cmd, "w+") do |pipe|
Expand Down

0 comments on commit 1466792

Please sign in to comment.