utils: Remove unneeded sort() methods

This commit is contained in:
Eduardo Almeida
2023-04-14 17:17:05 +01:00
parent c3428cff1c
commit 808d3671a6

View File

@@ -394,8 +394,6 @@ def check_formatting(filenames: List[str],
if not formatted:
files_not_formatted.append(filename)
files_not_formatted.sort()
# Output results
if not files_not_formatted:
print('All files are well formatted')
@@ -497,8 +495,6 @@ def check_trailing_whitespace(filenames: List[str],
if has_whitespace:
files_with_whitespace.append(filename)
files_with_whitespace.sort()
# Output results
if not files_with_whitespace:
print('No files detected with trailing whitespace')
@@ -590,8 +586,6 @@ def check_tabs(filenames: List[str],
if has_tabs:
files_with_tabs.append(filename)
files_with_tabs.sort()
# Output results
if not files_with_tabs:
print('No files detected with tabs')