Use guard clause

This commit is contained in:
Thorsten 2016-12-05 10:19:18 +01:00 committed by GitHub
parent 13be41c844
commit ce436c6f01

View file

@ -23,11 +23,10 @@ module Cti
o_id: data[:o_id],
user_id: data[:user_id],
)
if record.new_record?
return if !record.new_record?
record.comment = data[:comment]
record.save!
end
end
=begin