refactor: drop redundant comment above the sort
The stable-sort behaviour is described in the Design decisions section of the README.
This commit is contained in:
2
main.py
2
main.py
@@ -41,8 +41,6 @@ def main() -> None:
|
|||||||
# Also covers UnicodeDecodeError, which is a subclass of ValueError.
|
# Also covers UnicodeDecodeError, which is a subclass of ValueError.
|
||||||
sys.exit(f"error: {error}")
|
sys.exit(f"error: {error}")
|
||||||
|
|
||||||
# Most changed first. The sort is stable and keys only on the count,
|
|
||||||
# so lines with equal counts keep their original file order.
|
|
||||||
changed_lines.sort(key=lambda item: item[0], reverse=True)
|
changed_lines.sort(key=lambda item: item[0], reverse=True)
|
||||||
|
|
||||||
for _, line in changed_lines:
|
for _, line in changed_lines:
|
||||||
|
|||||||
Reference in New Issue
Block a user