No empty whens.

This commit is contained in:
Markus Reiter
2016-11-14 09:45:44 +01:00
parent 59e2d67721
commit 353b67a6b2
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -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
+1 -1
View File
@@ -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