Skip to content

Commit

Permalink
Corrected nested annotation check
Browse files Browse the repository at this point in the history
    * connectors/psdd4ccm/ridlbe/ccmx11/facets/psdd4ccm/writers/psdd_idl.rb:
  • Loading branch information
jwillemsen committed Feb 15, 2024
1 parent 42a174a commit a348767
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def init_visitor(v, node)

def is_psdd_topic?(node)
if params[:psdd_topic].blank? || params[:psdd_topic] == node.scoped_name
annot = node.annotations[:nested]
return true if annot[0] == nil
return false if annot[0].fields[:value] == nil
return false if annot[0].fields[:value] == true
true
annot = node.annotations[:nested].first
return true if annot.nil?
return false if annot.fields[:value].nil?
return true if annot.fields[:value] == false
false
end
false
end
Expand Down

0 comments on commit a348767

Please sign in to comment.