lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.1.0 vs lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.2.0

- old
+ new

@@ -32,16 +32,14 @@ value.dig(...) end def record_value(val, *path, **opts) key = path.pop - (__m__ = if val.is_a?(Hash) - Trace.new.tap { - _1.merge_values(val, **opts) - } -else - Trace.new(:value, val, **opts) -end) && (((trace = __m__) || true) || Kernel.raise(NoMatchingPatternError, __m__.inspect)) + trace = if val.is_a?(Hash) + Trace.new.tap { _1.merge_values(val, **opts) } + else + Trace.new(:value, val, **opts) + end target_trace = path.empty? ? self : value.dig(*path) target_trace.value[key.to_s] = trace val