Skip to content

Commit

Permalink
Use mapcan instead of cl-mapcan
Browse files Browse the repository at this point in the history
This was added in Emacs 26.1.
  • Loading branch information
tarsius committed Nov 23, 2024
1 parent 00609db commit 079d2d6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lisp/forge-github.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 079d2d6

Please sign in to comment.