Skip to content

Commit dff82fa

Browse files
committed
Change assert calls to cl-assert
1 parent 2b0da37 commit dff82fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

good-scroll.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ and FORMS-STRING contains the evaluated values of FORMS."
161161
This is used instead of `assert' when FORM is expensive to compute
162162
and shouldn't be run normally."
163163
`(when good-scroll--debug
164-
(assert ,form)))
164+
(cl-assert ,form)))
165165

166166
(defun good-scroll--point-at-top-p ()
167167
"Return non-nil if the point is close to the top of the selected window."
@@ -234,8 +234,8 @@ progress. This is called by the timer `good-scroll--timer' every
234234
(fraction-done (/ elapsed-time good-scroll-duration)))
235235
(unless (>= fraction-done 1.0)
236236
(let ((position-next (funcall good-scroll-algorithm fraction-done)))
237-
(assert (<= (abs position-next)
238-
(abs good-scroll-destination)))
237+
(cl-assert (<= (abs position-next)
238+
(abs good-scroll-destination)))
239239
(when (good-scroll--cached-point-top-dirty-p)
240240
(setq good-scroll--cached-point-top nil))
241241
(setq position-next (good-scroll--go-to position-next))

0 commit comments

Comments
 (0)