mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Remove threequals from ruby files
This commit is contained in:
@ -191,7 +191,7 @@ module SiteSettingExtension
|
||||
val = (val == "t" || val == "true") ? 't' : 'f'
|
||||
end
|
||||
|
||||
if type == types[:fixnum] && !(Fixnum === val)
|
||||
if type == types[:fixnum] && !val.is_a?(Fixnum)
|
||||
val = val.to_i
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user