diff options
| author | Markus Reiter | 2016-11-13 23:37:51 +0100 | 
|---|---|---|
| committer | Markus Reiter | 2016-11-14 09:45:44 +0100 | 
| commit | 353b67a6b2bc5932a780e328291cb42e7e868dce (patch) | |
| tree | 73993d5a7f81b8da36ba60365c6f5f57cdd2cc8f | |
| parent | 59e2d6772158d8df0735708ae78ddec6ccc68026 (diff) | |
| download | brew-353b67a6b2bc5932a780e328291cb42e7e868dce.tar.bz2 | |
No empty `when`s.
| -rw-r--r-- | Library/Homebrew/cmd/list.rb | 9 | ||||
| -rw-r--r-- | Library/Homebrew/compilers.rb | 2 | 
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 | 
