emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/urgrep a357fa4917: Use `ensure-list`


From: ELPA Syncer
Subject: [elpa] externals/urgrep a357fa4917: Use `ensure-list`
Date: Thu, 2 Nov 2023 00:59:18 -0400 (EDT)

branch: externals/urgrep
commit a357fa4917af4d8cc014e3c2a7771a3c0c1c9278
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    Use `ensure-list`
---
 urgrep.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/urgrep.el b/urgrep.el
index 17cadbf715..65c926f259 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -628,8 +628,8 @@ respectively).
 COLOR: non-nil (the default) if the output should use color."
   (with-connection-local-variables
    (let* ((regexp-syntax (if (eq regexp t) urgrep-regexp-syntax regexp))
-          (files (if (listp files) files (list files)))
-          (directory (if (listp directory) directory (list directory)))
+          (files (ensure-list files))
+          (directory (ensure-list directory))
           (tool (or (urgrep-get-tool tool)
                     (error "unknown tool %s" tool)))
           (tool-re-syntax (urgrep--get-best-syntax regexp-syntax tool))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]