Clean up commit f366325b3b a bit

This commit is contained in:
Ben Hollis 2015-05-03 15:01:00 -07:00
parent f366325b3b
commit cf58acda30
2 changed files with 2 additions and 1 deletions

View file

@ -267,7 +267,7 @@ module Middleman
# Returns the URI the preview server will run on
# @return [URI]
def uri
host = @host.eql?('0.0.0.0') ? 'localhost' : @host
host = @host == '0.0.0.0' ? 'localhost' : @host
scheme = https? ? 'https' : 'http'
URI("#{scheme}://#{host}:#{@port}")
end