branch: elpa/subed
commit 8a39911e65135e552980db8f2a00f30da26eb2f0
Author: Random User <[email protected]>
Commit: Random User <[email protected]>
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."