Skip to content

Commit 1edcb85

Browse files
committed
refactor(elfeed): minor edits
1 parent 138d889 commit 1edcb85

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/me-rss.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
(defun +elfeed-download-image ()
3434
"Download the image at point."
3535
(interactive)
36-
(let ((url (get-text-property (point) 'image-url)))
37-
(if (not url)
38-
(message "No image at point!")
39-
(url-copy-file url (expand-file-name (url-file-nondirectory url) (+directory-ensure +elfeed-images-dir)))))))
36+
(if-let* ((url (get-text-property (point) 'image-url)))
37+
(url-copy-file url (expand-file-name (url-file-nondirectory url) (+directory-ensure +elfeed-images-dir)))
38+
(user-error "No image at point!"))))
4039

4140

4241
;; Extra `elfeed' protocols to add support for Fever, NewsBlur, Nextcloud/ownCloud News and Tiny Tiny RSS

0 commit comments

Comments
 (0)