From b32ba93c6e86d1b1f420afe7cd9b8599b039a299 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 22 Aug 2022 21:18:36 +0200 Subject: [PATCH] Fix: remove index modifications --- clean_rst/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/clean_rst/main.py b/clean_rst/main.py index f4a8e46..2fbc2b7 100644 --- a/clean_rst/main.py +++ b/clean_rst/main.py @@ -126,12 +126,10 @@ def main(argv: list[str] = None) -> int: for f in select_by_extension(diff["A"], "rst"): errors += rst_lint(f) modified += normalize_file(f, NORMALIZERS_NEW) - r.index.add([f]) # Modified files for f in select_by_extension(diff["M"], "rst"): errors += rst_lint(f) modified += normalize_file(f, NORMALIZERS_MODIFIED) - r.index.add([f]) return int(len(errors) > 0)