Browse Source

ob-eshell: Silence byte-compiler

* lisp/ob-eshell.el (org-babel-eshell-initiate-session): Remove
  unnecessary code.
Nicolas Goaziou 1 year ago
parent
commit
0ff4076cb4
1 changed files with 2 additions and 5 deletions
  1. 2 5
      lisp/ob-eshell.el

+ 2 - 5
lisp/ob-eshell.el

@@ -77,11 +77,8 @@ The PARAMS are variables assignments."
   "Initiate a session named SESSION."
   (when (and session (not (string= session "none")))
     (save-window-excursion
-      (or (ob-eshell-session-live-p session)
-	  (progn
-	    (let ((eshell-buffer-name session))
-	      (eshell))
-	    (get-buffer (current-buffer)))))
+      (unless (ob-eshell-session-live-p session)
+	(let ((eshell-buffer-name session)) (eshell))))
     session))
 
 (defun org-babel-variable-assignments:eshell (params)