This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Optimization: Remove redundant list
call in check_file
in Build/check_indents.py
#602
Labels
Area-Build
Affects CI pipelines and other build processes
Kind-Maintenance
Request or suggestion for general code quality improvements
In the
check_file
function ofBuild/check_indents.py
, it is performing a redundantlist
call, onf.readlines()
which itself returns alist
, in line 28:This can have impact on performance, if the file is really large. This does not have any benefit over the plain
f.readlines()
either.I propose the following change:
The text was updated successfully, but these errors were encountered: