diff options
author | tiendo1011 <tiendo1011@gmail.com> | 2021-12-19 07:36:29 +0700 |
---|---|---|
committer | tiendo1011 <tiendo1011@gmail.com> | 2021-12-19 07:36:29 +0700 |
commit | 0e4fdb9b3b6ab715c5886274c52335c742387c0d (patch) | |
tree | 44e915db3fc13da020da9ec2d91a39a585322c1a | |
parent | cd4b76d53d77fa596d72584d7531fdb811cd38bf (diff) | |
download | diff-lcs-0e4fdb9b3b6ab715c5886274c52335c742387c0d.tar.gz |
Fix infinite method call
-rw-r--r-- | lib/diff/lcs.rb | 4 |
1 files 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 |