branch: externals/vc-jj commit 5e9da6f32700931c21dd7bf2428786c10950c331 Author: Rudi Schlatte <r...@constantly.at> Commit: Rudi Schlatte <r...@constantly.at>
Small simplification: use ensure-list where appropriate --- vc-jj.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vc-jj.el b/vc-jj.el index 8e1c287fd4..90f40b5ba1 100644 --- a/vc-jj.el +++ b/vc-jj.el @@ -126,11 +126,8 @@ the command line before the filename(s). Return the return value of the command in the synchronous case, and the process object in the asynchronous case." - (let* ((filesets (mapcar #'vc-jj--filename-to-fileset - (if (listp file-or-list) file-or-list (list file-or-list)))) - (global-switches (if (stringp vc-jj-global-switches) - (list vc-jj-global-switches) - vc-jj-global-switches))) + (let* ((filesets (mapcar #'vc-jj--filename-to-fileset (ensure-list file-or-list))) + (global-switches (ensure-list vc-jj-global-switches))) (apply #'vc-do-command (or buffer "*vc*") okstatus vc-jj-program ;; Note that we pass NIL for FILE-OR-LIST to avoid ;; vc-do-command mangling of filenames; we pass the fileset