Use guard clause
This commit is contained in:
parent
88965858ec
commit
0f95d74827
|
@ -67,13 +67,11 @@ 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
|
|
||||||
|
|
||||||
module InstanceMethods
|
module InstanceMethods
|
||||||
def proxy_manager
|
def proxy_manager
|
||||||
|
|
Loading…
Reference in a new issue