mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
Fix RuboCop Lint/SuppressedExceptionInNumberConversion (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23626 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -39,7 +39,7 @@ module Redmine
|
||||
end
|
||||
# 2,5 => 2.5
|
||||
s.tr!(',', '.')
|
||||
begin; Kernel.Float(s); rescue; nil; end
|
||||
Kernel.Float(s, exception: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user