mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(internal): remove error-checking for olp (#1326)
The `org-roam-capture-find-or-create-olp` function will throw the same error, so we don't have to explicitly catch and throw.
This commit is contained in:
@ -529,14 +529,7 @@ This function is used solely in Org-roam's capture templates: see
|
||||
(org-roam-capture--put prop val)))
|
||||
(set-buffer (org-capture-target-buffer file-path))
|
||||
(widen)
|
||||
(if-let* ((olp (--> (org-roam-capture--get :olp)
|
||||
(pcase it
|
||||
((pred listp)
|
||||
it)
|
||||
(wrong-type
|
||||
(signal 'wrong-type-argument
|
||||
`((stringp listp)
|
||||
,wrong-type)))))))
|
||||
(if-let* ((olp (org-roam-capture--get :olp)))
|
||||
(condition-case err
|
||||
(when-let ((marker (org-roam-capture-find-or-create-olp olp)))
|
||||
(goto-char marker)
|
||||
|
Reference in New Issue
Block a user