diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-08 01:07:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 07:07:36 +0100 |
commit | f68bb52556fe90d7adad8db9ba8b801a22281f30 (patch) | |
tree | bbf7e121bf50760cec93afacff695f160a7f16d2 /lib | |
parent | 8c1b65c7ddb9d49cb33c15c9a92dbfefebe868c6 (diff) |
Apply Rubocop Style/NegatedIfElseCondition (#23451)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 876383d7f..1184e5273 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -463,10 +463,10 @@ namespace :mastodon do prompt.say 'Running `RAILS_ENV=production rails db:setup` ...' prompt.say "\n\n" - if !system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production', 'SAFETY_ASSURED' => '1' }), 'rails db:setup') - prompt.error 'That failed! Perhaps your configuration is not right' - else + if system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production', 'SAFETY_ASSURED' => '1' }), 'rails db:setup') prompt.ok 'Done!' + else + prompt.error 'That failed! Perhaps your configuration is not right' end end @@ -479,10 +479,10 @@ namespace :mastodon do prompt.say 'Running `RAILS_ENV=production rails assets:precompile` ...' prompt.say "\n\n" - if !system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production' }), 'rails assets:precompile') - prompt.error 'That failed! Maybe you need swap space?' - else + if system(env.transform_values(&:to_s).merge({ 'RAILS_ENV' => 'production' }), 'rails assets:precompile') prompt.say 'Done!' + else + prompt.error 'That failed! Maybe you need swap space?' end end end |