Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Optimize by removing redundant list call (#602) - #615

Open
Sayandip Dutta (sayandipdutta) wants to merge 1 commit into
microsoft:mainfrom
sayandipdutta:main
Open

Optimize by removing redundant list call (#602)#615
Sayandip Dutta (sayandipdutta) wants to merge 1 commit into
microsoft:mainfrom
sayandipdutta:main

Conversation

@sayandipdutta

Copy link
Copy Markdown

closes #602

Avoid double iteration by removing list call on a list object.

-        contents = list(f.readlines())
+        contents = f.readlines()

Avoid double iteration by removing `list` call on a `list` object.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimization: Remove redundant list call in check_file in Build/check_indents.py

3 participants