Skip to content

Commit

Permalink
Combine extraneous 'let' form into enclosing '-if-let*'
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell authored and aeggenberger committed Mar 14, 2018
1 parent 77e9254 commit 7527434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flycheck.el
Expand Up @@ -3902,9 +3902,9 @@ beginning of the buffer, otherwise advance from the current
position.

Intended for use with `next-error-function'."
(-if-let* ((pos (flycheck-next-error-pos n reset)))
(let ((err (get-char-property pos 'flycheck-error)))
(flycheck-jump-to-error err))
(-if-let* ((pos (flycheck-next-error-pos n reset))
(err (get-char-property pos 'flycheck-error)))
(flycheck-jump-to-error err)
(user-error "No more Flycheck errors")))

(defun flycheck-next-error (&optional n reset)
Expand Down

0 comments on commit 7527434

Please sign in to comment.