diff options
| author | Dominyk Tiller | 2015-12-30 21:25:09 +0000 |
|---|---|---|
| committer | Dominyk Tiller | 2016-01-03 19:08:11 +0000 |
| commit | 8183f75dda037eb69666afc2e184af7d4cb9e462 (patch) | |
| tree | e84d0da5bf3b5a4d5976dfe6c1839057e51517d9 /Library/Homebrew/cmd | |
| parent | c7c9919d3aaba19ea8974549d582bba189e0b2a1 (diff) | |
| download | brew-8183f75dda037eb69666afc2e184af7d4cb9e462.tar.bz2 | |
config: split conditional
Stops Rubocop moaning about one line conditionals.
Closes Homebrew/homebrew#47537.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/config.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb index 2281f644c..67c6dd9f4 100644 --- a/Library/Homebrew/cmd/config.rb +++ b/Library/Homebrew/cmd/config.rb @@ -60,7 +60,11 @@ module Homebrew def describe_path(path) return "N/A" if path.nil? realpath = path.realpath - if realpath == path then path else "#{path} => #{realpath}" end + if realpath == path + path + else + "#{path} => #{realpath}" + end end def describe_x11 |
