Fix: remove index modifications

This commit is contained in:
Bertrand Benjamin 2022-08-22 21:18:36 +02:00
parent a657ccf491
commit b32ba93c6e
1 changed files with 0 additions and 2 deletions

View File

@ -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)