]> git.eshelyaron.com Git - sweep.git/commitdiff
Use 'ignore-errors' instead of 'condition-case' with no handlers
authorEshel Yaron <me@eshelyaron.com>
Tue, 6 Jun 2023 05:24:57 +0000 (08:24 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Jun 2023 05:24:57 +0000 (08:24 +0300)
sweeprolog.el

index 8027059a3e360c6bdc8a1aaf07683e85146c65c6..5fe350770fe6dd2fb952e55f796292a804d4ff18 100644 (file)
@@ -3666,9 +3666,7 @@ and end positions of the clause."
 (defun sweeprolog-end-of-next-predicate ()
   (let ((def-at-point (sweeprolog-definition-at-point)))
     (when (or (and def-at-point (<= (point) (nth 3 def-at-point)))
-              (condition-case _
-                  (progn (sweeprolog-forward-predicate)
-                         t)))
+              (ignore-errors (sweeprolog-forward-predicate) t))
       (sweeprolog-end-of-predicate-at-point)
       (point))))