about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-17 13:06:06 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-01-17 13:06:06 +0100
commitb9ed7e0f55f082de429d5e7d545a5424de0052dd (patch)
tree31c98912f529bc731d2d6bd276001ba0889afcb4 /app/controllers/concerns
parentc7e2b9cf64ab2db13e85470ae695b3b4c03fae79 (diff)
Please CodeClimate
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/theming_concern.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/theming_concern.rb b/app/controllers/concerns/theming_concern.rb
index 6622bcff6..1ee3256c0 100644
--- a/app/controllers/concerns/theming_concern.rb
+++ b/app/controllers/concerns/theming_concern.rb
@@ -46,8 +46,8 @@ module ThemingConcern
 
     if skin != 'default' && data['skin'][skin]
       pack_data[:skin] = skin if data['skin'][skin].include?(pack_name)
-    else # default skin
-      pack_data[:skin] = 'default' if data['pack'][pack_name]['stylesheet']
+    elsif data['pack'][pack_name]['stylesheet']
+      pack_data[:skin] = 'default'
     end
 
     pack_data