aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/list.rb9
-rw-r--r--Library/Homebrew/compilers.rb2
2 files changed, 4 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 3496580f4..7bbcb4799 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -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
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index 7503f1d77..6c3971984 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -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