mirror of
https://github.com/gosticks/brew.git
synced 2026-08-16 22:50:18 +00:00
No empty whens.
This commit is contained in:
@@ -146,7 +146,7 @@ class PrettyListing
|
||||
(pnn.extname == ".dylib" || pnn.extname == ".pc") && !pnn.symlink?
|
||||
end
|
||||
when ".brew"
|
||||
# Ignore .brew
|
||||
next # Ignore .brew
|
||||
else
|
||||
if pn.directory?
|
||||
if pn.symlink?
|
||||
@@ -187,12 +187,9 @@ class PrettyListing
|
||||
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
|
||||
|
||||
@@ -118,7 +118,7 @@ class CompilerSelector
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user