[1/3] simplediff: Remove redundant parentheses

Message ID 20220219201957.8329-1-zygmunt.krynicki@huawei.com
State New
Headers show
Series [1/3] simplediff: Remove redundant parentheses | expand

Commit Message

Zygmunt Krynicki Feb. 19, 2022, 8:19 p.m. UTC
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 lib/simplediff/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/simplediff/__init__.py b/lib/simplediff/__init__.py
index 57ee3c5c..11eb7e70 100644
--- a/lib/simplediff/__init__.py
+++ b/lib/simplediff/__init__.py
@@ -90,7 +90,7 @@  def diff(old, new):
             # now we are considering all values of iold such that
             # `old[iold] == new[inew]`.
             _overlap[iold] = (iold and overlap.get(iold - 1, 0)) + 1
-            if(_overlap[iold] > sub_length):
+            if _overlap[iold] > sub_length:
                 # this is the largest substring seen so far, so store its
                 # indices
                 sub_length = _overlap[iold]