lib/contrast/agent/assess/policy/propagator/select.rb in contrast-agent-4.6.0 vs lib/contrast/agent/assess/policy/propagator/select.rb in contrast-agent-4.7.0

- old
+ new

@@ -19,25 +19,15 @@ # 'gotcha' # Additionally, an empty string is returned when the starting index for # a character range is at the end of the string. Let's just skip that # and only track a string that has length - unless ret && - !ret.empty? && - Contrast::Agent::Assess::Tracker.tracked?(source) + return unless ret && !ret.empty? && Contrast::Agent::Assess::Tracker.tracked?(source) - return - end - return unless (source_properties = Contrast::Agent::Assess::Tracker.properties(source)) return unless (properties = Contrast::Agent::Assess::Tracker.properties!(ret)) - properties.build_event( - patcher, - ret, - source, - ret, - args) + properties.build_event(patcher, ret, source, ret, args) range = determine_select_range(source, args) return unless range tags = source_properties.tags_at_range(range)