From 8183f75dda037eb69666afc2e184af7d4cb9e462 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Wed, 30 Dec 2015 21:25:09 +0000 Subject: config: split conditional Stops Rubocop moaning about one line conditionals. Closes Homebrew/homebrew#47537. Signed-off-by: Dominyk Tiller --- Library/Homebrew/cmd/config.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3