don't fail if info is nil

This commit is contained in:
Jared Cosulich 2019-07-28 22:47:00 -04:00
parent 9eb36b0510
commit 7fb5bfd242

View file

@ -1,3 +1,4 @@
- return if info.nil?
- likert = info.answer_index_average
- zscore = info.zscore.present? ? info.zscore + 3 : nil
- likert = zscore if zscore.present?