Skip to content

Commit

Permalink
Clean up the presence checks
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Jan 31, 2018
1 parent e87d5b4 commit 636173f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/dialog_import_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def check_dialog_fields_for_validity(dialog_fields)

def check_dialog_associations_for_validity(dialog_fields)
associations = {}
dialog_fields.each { |df| associations.merge!(df["name"] => df["dialog_field_responders"]) unless df["dialog_field_responders"].nil? }
dialog_fields.each { |df| associations.merge!(df["name"] => df["dialog_field_responders"]) if df["dialog_field_responders"].present? }
unless associations.blank?
circular_references = @dialog_field_association_validator.circular_references(associations)
raise DialogFieldAssociationCircularReferenceError, circular_references if circular_references
Expand Down

0 comments on commit 636173f

Please sign in to comment.