mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #17688 from Homebrew/boo-more-type-errors
formula_assertions: Fix type of `cmd` param in `shell_output`
This commit is contained in:
commit
9383cfa67b
@ -21,7 +21,7 @@ module Homebrew
|
|||||||
# Returns the output of running cmd and asserts the exit status.
|
# Returns the output of running cmd and asserts the exit status.
|
||||||
#
|
#
|
||||||
# @api public
|
# @api public
|
||||||
sig { params(cmd: String, result: Integer).returns(String) }
|
sig { params(cmd: T.any(Pathname, String), result: Integer).returns(String) }
|
||||||
def shell_output(cmd, result = 0)
|
def shell_output(cmd, result = 0)
|
||||||
ohai cmd
|
ohai cmd
|
||||||
output = `#{cmd}`
|
output = `#{cmd}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user