Skip to content

Commit

Permalink
Simplify justl--is-recipe-line-p
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 11, 2023
1 parent 6add3e8 commit 1832c18
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions justl.el
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@ NAME is the buffer name."

(defun justl--is-recipe-line-p (str)
"Check if string STR is a recipe line."
(let* ((string (or str "")))
(if (string-match "\\`[ \t\n\r]+" string)
nil
(and (not (justl--is-variable-p string))
(s-contains? ":" string)))))
(and str
(not (string-match "\\`[ \t\n\r]+" str))
(not (justl--is-variable-p str))
(s-contains? ":" str)))

(defun justl--append-to-process-buffer (str)
"Append string STR to the process buffer."
Expand Down

0 comments on commit 1832c18

Please sign in to comment.