mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 02:44:13 +00:00
Fix Layout/EmptyLineAfterGuardClause issues caused by merging an old PR (#27512)
This commit is contained in:
parent
fc7734df8d
commit
79a63201a9
|
@ -99,6 +99,7 @@ namespace :mastodon do
|
||||||
prompt.error e.message
|
prompt.error e.message
|
||||||
unless prompt.yes?('Try again?')
|
unless prompt.yes?('Try again?')
|
||||||
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
||||||
|
|
||||||
errors = true
|
errors = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
@ -141,8 +142,10 @@ namespace :mastodon do
|
||||||
rescue => e
|
rescue => e
|
||||||
prompt.error 'Redis connection could not be established with this configuration, try again.'
|
prompt.error 'Redis connection could not be established with this configuration, try again.'
|
||||||
prompt.error e.message
|
prompt.error e.message
|
||||||
|
|
||||||
unless prompt.yes?('Try again?')
|
unless prompt.yes?('Try again?')
|
||||||
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
||||||
|
|
||||||
errors = true
|
errors = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
@ -430,8 +433,10 @@ namespace :mastodon do
|
||||||
rescue => e
|
rescue => e
|
||||||
prompt.error 'E-mail could not be sent with this configuration, try again.'
|
prompt.error 'E-mail could not be sent with this configuration, try again.'
|
||||||
prompt.error e.message
|
prompt.error e.message
|
||||||
|
|
||||||
unless prompt.yes?('Try again?')
|
unless prompt.yes?('Try again?')
|
||||||
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
return prompt.warn 'Nothing saved. Bye!' unless prompt.yes?('Continue anyway?')
|
||||||
|
|
||||||
errors = true
|
errors = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue