Fix brew style error and warning
This commit is contained in:
parent
9642485e73
commit
1501354ee7
@ -91,11 +91,10 @@ class LinkageChecker
|
|||||||
@brewed_dylibs.keys.map { |x| x.split("/").last }.include?(name)
|
@brewed_dylibs.keys.map { |x| x.split("/").last }.include?(name)
|
||||||
end
|
end
|
||||||
missing = Set.new
|
missing = Set.new
|
||||||
@broken_dylibs.each do |key, value|
|
@broken_dylibs.each_value do |value|
|
||||||
value.each do |str|
|
value.each do |str|
|
||||||
next unless str.start_with?("#{HOMEBREW_PREFIX}/opt", HOMEBREW_CELLAR)
|
missing << dylib_to_dep(str) if str.start_with?("#{HOMEBREW_PREFIX}/opt", HOMEBREW_CELLAR)
|
||||||
missing << dylib_to_dep(str)
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
unnecessary_deps -= missing.to_a
|
unnecessary_deps -= missing.to_a
|
||||||
[indirect_deps, undeclared_deps, unnecessary_deps]
|
[indirect_deps, undeclared_deps, unnecessary_deps]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user