Skip to content

Commit ae8d4b0

Browse files
committed
add another comment below lineno
1 parent 8190ab7 commit ae8d4b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codecov_cli/services/upload/upload_collector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def _get_file_fixes(
116116
# file is empty thus the eof should be 0
117117
# so lineno will be set to -1 here
118118
lineno = -1
119+
# overwrite lineno in this for loop
120+
# if f is empty, lineno stays at -1
119121
for lineno, line_content in enumerate(f):
120122
if any(
121123
pattern.match(line_content)

0 commit comments

Comments
 (0)