Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 79ba0a9

Browse files
colindeanphallstrom
authored andcommitted
Corrects two Rubocop warnings new since project-wide config changed
1 parent 89ec2d5 commit 79ba0a9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/bundle/brew_dumper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def sort!
191191
- f[:build_dependencies] \
192192
).uniq
193193
topo[f[:full_name]] = deps.map do |dep|
194-
ff = @formulae.find { |formula| formula[:name] == dep || formula[:full_name] == dep }
194+
ff = @formulae.find { |formula| [formula[:name], formula[:full_name]].include?(dep) }
195195
next unless ff
196196
ff[:full_name]
197197
end.compact

lib/bundle/lister.rb

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def list(entries)
1010
end
1111
end
1212

13-
private_class_method
1413
def self.show?(type)
1514
return true if ARGV.include?("--all")
1615
return true if ARGV.include?("--casks") && type == :cask

0 commit comments

Comments
 (0)