fixed codeclimate error

This commit is contained in:
dinsmol 2021-08-24 22:00:30 +03:00
parent ce218c34b9
commit a6b37ff5ac

View file

@ -21,12 +21,14 @@ module Actions
end
def validate_new_balance
@error = true and return if @new_balance.blank?
begin
!Float(@new_balance).nil?
rescue StandardError
if @new_balance.blank?
@error = true
else
begin
!Float(@new_balance).nil?
rescue StandardError
@error = true
end
end
end