소스 검색

ob-ref: Silence byte-compiler

* lisp/ob-ref.el (org-babel-ref-resolve): Silence byte-compiler.
Nicolas Goaziou 9 년 전
부모
커밋
0547969c0c
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      lisp/ob-ref.el

+ 6 - 4
lisp/ob-ref.el

@@ -193,10 +193,12 @@ the variable."
 		     (when (org-babel-ref-goto-headline-id ref)
 		       (throw :found (org-babel-ref-headline-body)))
 		     ;; Check the Library of Babel.
-		     (let ((lob-info (cdr (assq (intern ref) org-babel-library-of-babel))))
-		       (when lob-info
-			 (throw :found (org-babel-execute-src-block nil lob-info params))))
-		     (t (error "Reference `%s' not found in this buffer" ref)))))
+		     (let ((info (cdr (assq (intern ref)
+					    org-babel-library-of-babel))))
+		       (when info
+			 (throw :found
+				(org-babel-execute-src-block nil info params))))
+		     (error "Reference `%s' not found in this buffer" ref))))
 	     (cond
 	      ((symbolp result) (format "%S" result))
 	      ((and index (listp result))