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,11 +67,9 @@ module Middleman
mime_type = super mime_type = super
return mime_type if mime_type return mime_type if mime_type
if proxy? return proxied_to_resource.content_type if proxy?
proxied_to_resource.content_type
else nil
nil
end
end end
end end