lib/contrast/extension/assess/exec_trigger.rb in contrast-agent-6.6.5 vs lib/contrast/extension/assess/exec_trigger.rb in contrast-agent-6.7.0
- old
+ new
@@ -17,10 +17,12 @@
return unless Contrast::Utils::Assess::TrackingUtil.tracked?(source)
# source might not be all the args passed in, but it is the one we care
# about. we could pass in all the args in the last param here if it
# becomes an issue in rendering on TS
- Contrast::Agent::Assess::Policy::TriggerMethod.build_finding(trigger_node, source, Kernel, nil, source)
+ finding = Contrast::Agent::Assess::Policy::TriggerMethod.build_finding(trigger_node,
+ source, Kernel, nil, source)
+ Contrast::Agent::Assess::Policy::TriggerMethod.report_finding(finding) if finding
end
private
def trigger_node