Skip to content

Commit 500ce65

Browse files
committed
Optimize by removing redundant list call (microsoft#602)
Avoid double iteration by removing `list` call on a `list` object.
1 parent f9938a2 commit 500ce65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/check_indents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def check_file(filename : str) -> bool:
2525
found_tabs = False
2626

2727
with open(filename, 'r') as f:
28-
contents = list(f.readlines())
28+
contents = f.readlines()
2929

3030
for line in contents:
3131
# Find the leading whitespace.

0 commit comments

Comments
 (0)