Use and in one place

* jupyter-org-client.el (jupyter-org--append-stream-result-p): Do it.
This commit is contained in:
Nathaniel Nicandro 2020-04-10 15:50:34 -05:00
parent 7d61c82567
commit 90e0c06f2e

View file

@ -1263,9 +1263,9 @@ is a stream result. Otherwise return nil."
Return nil if CONTEXT does not represent a previous stream result Return nil if CONTEXT does not represent a previous stream result
already present in the buffer or if RESULT is not a stream already present in the buffer or if RESULT is not a stream
result." result."
(when (and (jupyter-org--stream-result-p result) (and (jupyter-org--stream-result-p result)
(not (jupyter-org--first-result-context-p context))) (not (jupyter-org--first-result-context-p context))
(jupyter-org--stream-context-p context))) (jupyter-org--stream-context-p context)))
;; Adapted from `jupyter-handle-control-codes' ;; Adapted from `jupyter-handle-control-codes'
(defun jupyter-org--handle-control-codes (beg end) (defun jupyter-org--handle-control-codes (beg end)