Skip to content

Commit e4a55cc

Browse files
committed
elpaca-test: ignore :repo nil
We could use plist-member to test for presense, but :repo nil doesn't make sense in most test conditions.
1 parent b95a289 commit e4a55cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elpaca-test.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ For DEPTH, REPO, REF, FORMS see `elpaca-test' keyword args."
126126
(elpaca-test--upstream-init installer))))
127127
(elpaca--write-file (expand-file-name "./init.el")
128128
(emacs-lisp-mode)
129-
(insert (elpaca-test--init contents `(:ref ,(unless (eq ref 'local) ref) :depth ,depth :repo ,repo) forms))
129+
(insert (elpaca-test--init contents `(:ref ,(unless (eq ref 'local) ref) :depth ,depth ,@(when repo `(:repo ,repo))) forms))
130130
(mapc #'print forms)
131131
(elisp-enable-lexical-binding))))
132132

@@ -285,7 +285,7 @@ The following keys are recognized:
285285
(timeout (car (plist-get args :timeout)))
286286
(init (plist-get args :init))
287287
(ref (car (plist-get args :ref)))
288-
(repo (car (plist-get args :repo)))
288+
(repo (or (car (plist-get args :repo))))
289289
(installer (car (plist-get args :installer)))
290290
(depth (if-let* ((declared (plist-member args :depth))) (caadr declared) 1))
291291
(localp (eq ref 'local))

0 commit comments

Comments
 (0)