mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
* fix: Syntax Error lgtm display in matrix/matrix_operation.py.
* Testing for None should use the 'is' operator.
* fix: Too many arguments for string format.
* fix: supress lgtm alert as false positive.
* style: Unnecessary 'pass' statement.
* Revert "fix: Syntax Error lgtm display in matrix/matrix_operation.py."
This reverts commit 4c629b4ce1.
This commit is contained in:
committed by
Christian Clauss
parent
a2b5a90c11
commit
04962c0d17
@@ -70,7 +70,7 @@ class BoyerMooreSearch:
|
||||
positions.append(i)
|
||||
else:
|
||||
match_index = self.match_in_pattern(self.text[mismatch_index])
|
||||
i = mismatch_index - match_index #shifting index
|
||||
i = mismatch_index - match_index #shifting index lgtm [py/multiple-definition]
|
||||
return positions
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user