Skip to content

Commit 520a37d

Browse files
committed
Remove incorrectly implemented part of RemoveCircularReferences
It's impossible to have a circular object reference from a deserialized JSON string - this was a remnant of the previous implementation. This check is unnecessary (and should have been calling "json_hash.reduce" anyway).
1 parent 7e83499 commit 520a37d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/raven/processor/removecircularreferences.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ def process(v, visited = [])
88
v.reduce({}) { |memo, (k, v_)| memo[k] = process(v_, visited); memo }
99
elsif v.is_a?(Array)
1010
v.map { |v_| process(v_, visited) }
11-
elsif v.is_a?(String) && json_hash = parse_json_or_nil(v)
12-
v.reduce({}) { |memo, (k, v_)| memo[k] = process(v_, visited); memo }.to_json
1311
else
1412
v
1513
end

0 commit comments

Comments
 (0)