config: split conditional

Stops Rubocop moaning about one line conditionals.

Closes Homebrew/homebrew#47537.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2015-12-30 21:25:09 +00:00
parent c7c9919d3a
commit 8183f75dda

View File

@ -60,7 +60,11 @@ module Homebrew
def describe_path(path) def describe_path(path)
return "N/A" if path.nil? return "N/A" if path.nil?
realpath = path.realpath realpath = path.realpath
if realpath == path then path else "#{path} => #{realpath}" end if realpath == path
path
else
"#{path} => #{realpath}"
end
end end
def describe_x11 def describe_x11