Skip to content

Commit

Permalink
fix hog link checking
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpeck committed Apr 18, 2024
1 parent 0a63203 commit 4e07683
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hog.el
Original file line number Diff line number Diff line change
Expand Up @@ -661,12 +661,10 @@ template at a specific PATH."
(let* ((link (hog--get-link-at-point))
(link-is-glob (file-expand-wildcards link))
(link-exists (file-exists-p link)))
(when (not (string-empty-p link))
(print link)
(when (or (not link)

(not link-exists)
(not link-is-glob))
(when (and link
(not (string-empty-p link))
(not link-is-glob))
(when (not link-exists)
(setq errors (+ 1 errors))
(princ (format "Error:%d \"%s\" not found\n" (line-number-at-pos) link))))))
(forward-line))) errors))
Expand Down

0 comments on commit 4e07683

Please sign in to comment.