mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -28,7 +28,7 @@ class ThemeSettingsParser
|
||||
if type == @types[:enum]
|
||||
choices = raw_opts[:choices]
|
||||
choices = [] unless choices.is_a?(Array)
|
||||
choices << default unless choices.include?(default)
|
||||
choices << default if choices.exclude?(default)
|
||||
opts[:choices] = choices
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user