From 126e2d8642669d3bc3f16d8a163dc9f0e0325a07 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 27 Aug 2023 22:33:13 -0400 Subject: 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. --- lisp/mastodon-views.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lisp/mastodon-views.el') 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 -- cgit v1.2.3