branch: externals/timeout
commit 150f04105549a2d9732d240c88a7196afce6593f
Merge: 16a9550aa6 cd7657a522
Author: karthink <karthikchikmaga...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #1 from josephmturner/timerp
    
    Tidy: Just check timerp
---
 timeout.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/timeout.el b/timeout.el
index 2a7c2348c0..160b40bf2d 100644
--- a/timeout.el
+++ b/timeout.el
@@ -45,7 +45,7 @@ function advice."
         (result))
     (lambda (orig-fn &rest args)
       "Throttle calls to this function."
-      (if (and throttle-timer (timerp throttle-timer))
+      (if (timerp throttle-timer)
           result
         (prog1
             (setq result (apply orig-fn args))
@@ -67,7 +67,7 @@ This is intended for use as function advice."
         (delay (or delay 0.50)))
     (lambda (orig-fn &rest args)
       "Debounce calls to this function."
-      (when (and debounce-timer (timerp debounce-timer))
+      (when (timerp debounce-timer)
         (cancel-timer debounce-timer))
       (prog1 default
         (setq debounce-timer

Reply via email to