aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-views.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2023-08-27 22:33:13 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2023-08-27 22:33:13 -0400
commit126e2d8642669d3bc3f16d8a163dc9f0e0325a07 (patch)
treea731306b8049300df2ac0c4c4333c3aeee52d24c /lisp/mastodon-views.el
parentb54fc1b6d405024c2b5c6019e60ee7ed0744b66c (diff)
Fix "empty body" warnings
* lisp/mastodon-media.el (mastodon-media--process-image-response): Remove unused `unwind-protect`. * lisp/mastodon-views.el (mastodon-views--delete-filter): Fix paren error which made a `y-or-n-p` ineffective.
Diffstat (limited to 'lisp/mastodon-views.el')
-rw-r--r--lisp/mastodon-views.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el
index 9809365..a40603d 100644
--- a/lisp/mastodon-views.el
+++ b/lisp/mastodon-views.el
@@ -645,12 +645,12 @@ Prompt for a context, must be a list containting at least one of \"home\",
(url (mastodon-http--api (format "filters/%s" filter-id))))
(if (null phrase)
(error "No filter at point?")
- (when (y-or-n-p (format "Delete filter %s? " phrase)))
- (let ((response (mastodon-http--delete url)))
- (mastodon-http--triage
- response (lambda ()
- (mastodon-views--view-filters)
- (message "Filter for \"%s\" deleted!" phrase)))))))
+ (when (y-or-n-p (format "Delete filter %s? " phrase))
+ (let ((response (mastodon-http--delete url)))
+ (mastodon-http--triage
+ response (lambda ()
+ (mastodon-views--view-filters)
+ (message "Filter for \"%s\" deleted!" phrase))))))))
;;; FOLLOW SUGGESTIONS