From 079d2d62b6c8590e7d165df7dc1517f7a3fca82c Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 23 Nov 2024 22:31:26 +0100 Subject: [PATCH] Use mapcan instead of cl-mapcan This was added in Emacs 26.1. --- lisp/forge-github.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lisp/forge-github.el b/lisp/forge-github.el index 43709048..3c673379 100644 --- a/lisp/forge-github.el +++ b/lisp/forge-github.el @@ -553,14 +553,13 @@ nil :auth 'forge :host host)) (defun forge--batch-add-callback (host owner names) - (let ((repos (cl-mapcan - (lambda (name) - (let ((repo (forge-get-repository - (list host owner name) - nil :insert!))) - (and (not (forge-get-repository repo nil :tracked?)) - (list repo)))) - names)) + (let ((repos (mapcan (lambda (name) + (let ((repo (forge-get-repository + (list host owner name) + nil :insert!))) + (and (not (forge-get-repository repo nil :tracked?)) + (list repo)))) + names)) (cb nil)) (setq cb (lambda () (when-let ((repo (pop repos)))