瀏覽代碼

org-export: Remove useless test

* contrib/lisp/org-export.el (org-export-get-previous-element): Remove
  useless test.
Nicolas Goaziou 13 年之前
父節點
當前提交
6951f9af15
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      contrib/lisp/org-export.el

+ 1 - 2
contrib/lisp/org-export.el

@@ -2754,8 +2754,7 @@ a communication channel.
 
 Return previous element or object, a string, or nil."
   (let ((parent (car (plist-get info :genealogy))))
-    (if (stringp parent) blob
-      (cadr (member blob (reverse (org-element-get-contents parent)))))))
+    (cadr (member blob (reverse (org-element-get-contents parent))))))