diff options
| author | Markus Reiter | 2016-09-20 22:03:08 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:06 +0200 |
| commit | 52ff98853068c03b3bfa777932da1da69e35e583 (patch) | |
| tree | 9a1da6ffe5d0054c4edaa321744b7ce1e685040a /Library/Homebrew/software_spec.rb | |
| parent | db37920fa71060d8557dc83013c06f8ff61ef4a1 (diff) | |
| download | brew-52ff98853068c03b3bfa777932da1da69e35e583.tar.bz2 | |
Fix RuboCop CaseEquality.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 986dc5354..8e42e20da 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -116,12 +116,12 @@ class SoftwareSpec def option(name, description = "") opt = PREDEFINED_OPTIONS.fetch(name) do - if Symbol === name + if name.is_a?(Symbol) opoo "Passing arbitrary symbols to `option` is deprecated: #{name.inspect}" puts "Symbols are reserved for future use, please pass a string instead" name = name.to_s end - unless String === name + unless name.is_a?(String) raise ArgumentError, "option name must be string or symbol; got a #{name.class}: #{name}" end raise ArgumentError, "option name is required" if name.empty? |
