From 79a63201a9ce73bc0137192c6e4230745e15fbe5 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 23 Oct 2023 16:21:48 +0200 Subject: [PATCH] Fix Layout/EmptyLineAfterGuardClause issues caused by merging an old PR (#27512) --- lib/tasks/mastodon.rake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index ebf12083808..f2a90cd92e3 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -99,6 +99,7 @@ namespace :mastodon do prompt.error e.message unless prompt.yes?('Try again?') return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?') + errors = true break end @@ -141,8 +142,10 @@ namespace :mastodon do rescue => e prompt.error 'Redis connection could not be established with this configuration, try again.' prompt.error e.message + unless prompt.yes?('Try again?') return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?') + errors = true break end @@ -430,8 +433,10 @@ namespace :mastodon do rescue => e prompt.error 'E-mail could not be sent with this configuration, try again.' prompt.error e.message + unless prompt.yes?('Try again?') return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?') + errors = true break end