Skip to content

Commit

Permalink
No empty whens.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 14, 2016
1 parent 59e2d67 commit 353b67a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Library/Homebrew/cmd/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def initialize(path)
(pnn.extname == ".dylib" || pnn.extname == ".pc") && !pnn.symlink?
end
when ".brew"
# Ignore .brew
next # Ignore .brew
else
if pn.directory?
if pn.symlink?
Expand Down Expand Up @@ -187,12 +187,9 @@ def print_dir(root)
end

def print_remaining_files(files, root, other = "")
case files.length
when 0
# noop
when 1
if files.length == 1
puts files
else
elsif files.length > 1
puts "#{root}/ (#{files.length} #{other}files)"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/compilers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def find_compiler
yield Compiler.new(name, version) if version
end
when :llvm
# no-op. DSL supported, compiler is not.
next # no-op. DSL supported, compiler is not.
else
version = compiler_version(compiler)
yield Compiler.new(compiler, version) if version
Expand Down

0 comments on commit 353b67a

Please sign in to comment.