Commit d567be22 authored by Glenn Morris's avatar Glenn Morris

Simplify previous change (auto can only be non-nil if type is).

parent 2092ac41
......@@ -348,7 +348,7 @@ non-nil value. If that value is non-nil, but not t, then the image type
must be available."
(let* ((type (image-type-from-buffer))
(auto (and type (cdr (assq type image-type-auto-detectable)))))
(and type auto
(and auto
(or (eq auto t) (image-type-available-p type)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment