org-capture: Remove unnecessary checks

* lisp/org-capture.el (org-capture-place-plain-text): Remove
  unnecessary checks.
This commit is contained in:
Nicolas Goaziou 2018-10-23 01:46:57 +02:00
parent c76486d4e4
commit b46d4e7b1c
1 changed files with 2 additions and 4 deletions

View File

@ -1296,14 +1296,12 @@ Of course, if exact position has been required, just put it there."
(cond
((org-capture-get :exact-position)
(goto-char (org-capture-get :exact-position)))
((and (org-capture-get :target-entry-p)
(bolp)
(looking-at org-outline-regexp))
((org-capture-get :target-entry-p)
;; Place the text into this entry.
(if (org-capture-get :prepend)
;; Skip meta data and drawers.
(org-end-of-meta-data t)
;; Go to end of the entry text, before the next headline
;; Go to end of the entry text, before the next headline.
(outline-next-heading)))
(t
;; Beginning or end of file.