Skip to content

Commit efddd69

Browse files
committed
Use string-join instead of mapconcat
1 parent 601b3a5 commit efddd69

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

emacsql-compiler.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
(require 'cl-lib)
1414

15+
(eval-when-compile (require 'subr-x))
16+
1517
;;; Error symbols
1618

1719
(defmacro emacsql-deferror (symbol parents message)
@@ -507,8 +509,7 @@ Only use within `emacsql-with-params'!"
507509
(emacsql-escape-scalar item))))
508510
into parts
509511
do (setq last item)
510-
finally (cl-return
511-
(mapconcat #'identity parts " ")))))
512+
finally (cl-return (string-join parts " ")))))
512513

513514
(defun emacsql-prepare (sql)
514515
"Expand SQL (string or sexp) into a prepared statement."

emacsql-sqlite.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
;;; Code:
2121

22+
(eval-when-compile (require 'subr-x))
23+
2224
(require 'emacsql)
2325
(require 'emacsql-sqlite-common)
2426

@@ -153,7 +155,7 @@ If called with non-nil ERROR, signal an error on failure."
153155
(let ((log (get-buffer-create byte-compile-log-buffer)))
154156
(with-current-buffer log
155157
(let ((inhibit-read-only t))
156-
(insert (mapconcat #'identity (cons cc arguments) " ") "\n")
158+
(insert (string-join (cons cc arguments) " ") "\n")
157159
(let ((pos (point))
158160
(ret (apply #'call-process cc nil (if async 0 t) t
159161
arguments)))

0 commit comments

Comments
 (0)