diff --git a/lib/mail_catcher/web/application.rb b/lib/mail_catcher/web/application.rb index c8dcf58..db314df 100644 --- a/lib/mail_catcher/web/application.rb +++ b/lib/mail_catcher/web/application.rb @@ -158,7 +158,7 @@ module MailCatcher delete "/messages/:id" do id = params[:id].to_i - if message = Mail.message(id) + if Mail.message(id) Mail.delete_message!(id) status 204 else