Use guard clause

This commit is contained in:
Dennis Günnewig 2015-01-08 14:58:00 +01:00
parent 88965858ec
commit 0f95d74827

View file

@ -67,13 +67,11 @@ module Middleman
mime_type = super
return mime_type if mime_type
if proxy?
proxied_to_resource.content_type
else
return proxied_to_resource.content_type if proxy?
nil
end
end
end
module InstanceMethods
def proxy_manager