diff --git a/.flake8 b/.flake8 index ae8f97285..c9c131f01 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] -ignore = E203,W503,E231 +ignore = E203,W503,E231,E222 max-line-length = 100 diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 28331edf0..074151b0f 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -78,7 +78,7 @@ class EditBlockCoder(Coder): """ - if updated in content: + if updated in content and updated: res += f"""Are you sure you need this SEARCH/REPLACE block? The REPLACE lines are already in {path}!