Skip to content

Commit 8190ab7

Browse files
committed
Add comment explaining lineno change
1 parent 29febe6 commit 8190ab7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

codecov_cli/services/upload/upload_collector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def _get_file_fixes(
112112

113113
try:
114114
with open(filename, "r") as f:
115+
# If lineno is unset that means that the
116+
# file is empty thus the eof should be 0
117+
# so lineno will be set to -1 here
115118
lineno = -1
116119
for lineno, line_content in enumerate(f):
117120
if any(

0 commit comments

Comments
 (0)