mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix type errors
This commit is contained in:
parent
d56e2884aa
commit
1c44a8861d
@ -105,8 +105,6 @@ module Homebrew
|
||||
arguments.concat UNBREWED_EXCLUDE_PATHS.flat_map { |d| %W[! -path #{d}] }
|
||||
arguments.push ")"
|
||||
|
||||
# This is a false positive type error: https://github.com/sorbet/sorbet/issues/6812
|
||||
T.unsafe(self).cd HOMEBREW_PREFIX
|
||||
safe_system "find", *arguments
|
||||
cd(HOMEBREW_PREFIX) { safe_system("find", *arguments) }
|
||||
end
|
||||
end
|
||||
|
@ -54,8 +54,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
def git_log(cd_dir, path = nil, tap = nil, args:)
|
||||
# This is a false positive type error: https://github.com/sorbet/sorbet/issues/6812
|
||||
T.unsafe(self).cd cd_dir
|
||||
cd cd_dir do
|
||||
repo = Utils.popen_read("git", "rev-parse", "--show-toplevel").chomp
|
||||
if tap
|
||||
name = tap.to_s
|
||||
@ -85,3 +84,4 @@ module Homebrew
|
||||
system "git", "log", *git_args
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user