diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-04-09 11:25:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 11:25:30 +0200 |
commit | ff168ef2024626f37fa776fde5739dcd58ecb9f2 (patch) | |
tree | 5b638b2e5a43445a75133a9b510bff00d44ea986 /app/controllers/settings | |
parent | 29a91b871eb4fb375baa3701e29cfb35f884bb98 (diff) |
Fix most rubocop issues (#2165)
* Run rubocop --autocorrect on app/, config/ and lib/, also manually fix some remaining style issues * Run rubocop --autocorrect-all on db/ * Run rubocop --autocorrect-all on `spec/` and fix remaining issues
Diffstat (limited to 'app/controllers/settings')
-rw-r--r-- | app/controllers/settings/flavours_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/settings/flavours_controller.rb b/app/controllers/settings/flavours_controller.rb index c1172598b..b179b9429 100644 --- a/app/controllers/settings/flavours_controller.rb +++ b/app/controllers/settings/flavours_controller.rb @@ -12,9 +12,7 @@ class Settings::FlavoursController < Settings::BaseController end def show - unless Themes.instance.flavours.include?(params[:flavour]) || (params[:flavour] == current_flavour) - redirect_to action: 'show', flavour: current_flavour - end + redirect_to action: 'show', flavour: current_flavour unless Themes.instance.flavours.include?(params[:flavour]) || (params[:flavour] == current_flavour) @listing = Themes.instance.flavours @selected = params[:flavour] |