Use guard clause
This commit is contained in:
parent
88965858ec
commit
0f95d74827
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue