Use guard clause
This commit is contained in:
parent
88965858ec
commit
0f95d74827
|
@ -67,11 +67,9 @@ module Middleman
|
|||
mime_type = super
|
||||
return mime_type if mime_type
|
||||
|
||||
if proxy?
|
||||
proxied_to_resource.content_type
|
||||
else
|
||||
nil
|
||||
end
|
||||
return proxied_to_resource.content_type if proxy?
|
||||
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue