]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify previous change (auto can only be non-nil if type is).
authorGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2007 16:41:34 +0000 (16:41 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2007 16:41:34 +0000 (16:41 +0000)
lisp/image.el

index 77f8ffe02c2168d7980b018159997bd3b5bacb6c..7e42c26dd69b848556a3389a2c26532f74bd6979 100644 (file)
@@ -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)))))