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

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

[nongnu] elpa/emacsql 8c46fb2c1e 286/427: Drop argument count check sinc


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 8c46fb2c1e 286/427: Drop argument count check since it's wrong.
Date: Tue, 13 Dec 2022 02:59:52 -0500 (EST)

branch: elpa/emacsql
commit 8c46fb2c1ecbc1c6e0602803eafe49ae32b50257
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Drop argument count check since it's wrong.
---
 emacsql-compiler.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/emacsql-compiler.el b/emacsql-compiler.el
index 4fbb53b127..8f0e829f10 100644
--- a/emacsql-compiler.el
+++ b/emacsql-compiler.el
@@ -336,8 +336,6 @@ which will be combined with variable definitions."
 (defun emacsql-format (expansion &rest args)
   "Fill in the variables EXPANSION with ARGS."
   (cl-destructuring-bind (format . vars) expansion
-    (unless (= (length args) (length vars))
-      (emacsql-error "Wrong number of arguments for SQL template."))
     (apply #'format format
            (cl-loop for (i . kind) in vars collect
                     (let ((thing (nth i args)))



reply via email to

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