branch: externals/ivy-hydra
commit 50b02a0b6b22a840ae02b0bf43ee420d91da1ec0
Author: Basil L. Contovounesios <[email protected]>
Commit: Basil L. Contovounesios <[email protected]>

    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