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

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

[nongnu] elpa/subed 8a39911 024/389: Use let instead of setq


From: ELPA Syncer
Subject: [nongnu] elpa/subed 8a39911 024/389: Use let instead of setq
Date: Fri, 3 Dec 2021 10:59:50 -0500 (EST)

branch: elpa/subed
commit 8a39911e65135e552980db8f2a00f30da26eb2f0
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>

    Use let instead of setq
---
 tests/test-subed-srt.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test-subed-srt.el b/tests/test-subed-srt.el
index 9e96543..702cbaa 100644
--- a/tests/test-subed-srt.el
+++ b/tests/test-subed-srt.el
@@ -180,9 +180,9 @@ Baz.
                           (insert mock-srt-data)
                           (goto-char (point-min))
                           (search-forward "Foo")
-                          (setq stored-point (point))
-                          (expect (subed-srt-move-to-subtitle-id 4) :to-equal 
nil)
-                          (expect stored-point :to-equal (point))))
+                          (let ((stored-point (point)))
+                            (expect (subed-srt-move-to-subtitle-id 4) 
:to-equal nil)
+                            (expect stored-point :to-equal (point)))))
                     )
           (describe "to subtitle ID at specific time"
                     (it "returns ID's point if point changed."



reply via email to

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