From 0e4fdb9b3b6ab715c5886274c52335c742387c0d Mon Sep 17 00:00:00 2001 From: tiendo1011 Date: Sun, 19 Dec 2021 07:36:29 +0700 Subject: Fix infinite method call --- lib/diff/lcs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index 63888a1..443c54f 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -85,14 +85,14 @@ module Diff::LCS # rubocop:disable Style/Documentation # Traverses the discovered longest common subsequences between +self+ and # +other+. See Diff::LCS#traverse_sequences. def traverse_sequences(other, callbacks = nil, &block) - traverse_sequences(self, other, callbacks || Diff::LCS::SequenceCallbacks, &block) + Diff::LCS.traverse_sequences(self, other, callbacks || Diff::LCS::SequenceCallbacks, &block) end # Traverses the discovered longest common subsequences between +self+ and # +other+ using the alternate, balanced algorithm. See # Diff::LCS#traverse_balanced. def traverse_balanced(other, callbacks = nil, &block) - traverse_balanced(self, other, callbacks || Diff::LCS::BalancedCallbacks, &block) + Diff::LCS.traverse_balanced(self, other, callbacks || Diff::LCS::BalancedCallbacks, &block) end # Attempts to patch +self+ with the provided +patchset+. A new sequence based -- cgit v1.2.1