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

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

[elpa] externals/ivy-hydra 50b02a0 222/395: Remove unused lexical variab


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 50b02a0 222/395: Remove unused lexical variable in recent test
Date: Thu, 25 Feb 2021 08:32:07 -0500 (EST)

branch: externals/ivy-hydra
commit 50b02a0b6b22a840ae02b0bf43ee420d91da1ec0
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Remove unused lexical variable in recent test
    
    * ivy-test.el (ivy-read-history): Remove unused lexical variable
    'hist'.
---
 ivy-test.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index fa07721..afca7c2 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -189,12 +189,8 @@ Since `execute-kbd-macro' doesn't pick up a let-bound 
`default-directory'.")
 
 (ert-deftest ivy-read-history ()
   (defvar ivy-read-hist '("c" "b" "a"))
-  (should
-   (equal
-    (let ((hist ))
-      (ivy-with '(ivy-read "test: " '("c" "d") :history 'ivy-read-hist) "RET")
-      ivy-read-hist)
-    '("c" "b" "a"))))
+  (ivy-with '(ivy-read "test: " '("c" "d") :history 'ivy-read-hist) "RET")
+  (should (equal ivy-read-hist '("c" "b" "a"))))
 
 (ert-deftest ivy-read-sort-alist ()
   (should (equal (ivy-with '(let ((coll '(("b" . "1") ("a" . "2"))))



reply via email to

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