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 2d26cb3 commit 894567a
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 @@ -157,11 +157,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 894567a

Please sign in to comment.