Skip to content

Commit

Permalink
Fix Layout/EmptyLineAfterGuardClause issues caused by merging an old …
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Oct 23, 2023
1 parent fc7734d commit 79a6320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tasks/mastodon.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 79a6320

Please sign in to comment.