lib/contrast/extension/assess/regexp.rb in contrast-agent-4.2.0 vs lib/contrast/extension/assess/regexp.rb in contrast-agent-4.3.0
- old
+ new
@@ -46,17 +46,12 @@
# TODO: RUBY-686
return if scope_for_current_ec.instance_variable_get(:@contrast_scope) > 1
target = info_hash[:back_ref]
with_contrast_scope do
- result = info_hash[:result]
- return unless result
-
- string = info_hash[:string]
- return unless string
-
- properties = Contrast::Agent::Assess::Tracker.properties(target)
- return unless properties
+ return unless (result = info_hash[:result])
+ return unless (string = info_hash[:string])
+ return unless (properties = Contrast::Agent::Assess::Tracker.properties!(target))
properties.splat_from(string, target)
properties.build_event(
REGEXP_EQUAL_SQUIGGLE_NODE,
target,