branch: externals/xref-union
commit 4ef6bd38f20b535d1a62783b61ede740f30d7e20
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>

    Simplify 'xref-backend-identifier-at-point' loop
---
 xref-union.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xref-union.el b/xref-union.el
index fef5227330..bff537ae19 100644
--- a/xref-union.el
+++ b/xref-union.el
@@ -79,8 +79,7 @@ buffer."
 (cl-defmethod xref-backend-identifier-at-point ((backends (head union)))
   "Collect the results of multiple Xref BACKENDS."
   (cl-loop for backend in (cdr backends)
-           when (xref-backend-identifier-at-point backend)
-           return it))
+           thereis (xref-backend-identifier-at-point backend)))
 
 (cl-defmethod xref-backend-identifier-completion-table ((backends (head 
union)))
   "Collect the results of multiple Xref BACKENDS."

Reply via email to