Skip to content

Commit 4c53f1b

Browse files
author
Tom Reitz
committed
implementing improvements per Jay code review
1 parent 1401f88 commit 4c53f1b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lightbeam/send.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,8 @@ async def do_send(self, endpoint):
112112
for file_name in data_files:
113113
with open(file_name) as file:
114114
# process each line
115-
line_counter = 0
116-
for line in file:
115+
for line_counter, line in enumerate(file):
117116
total_counter += 1
118-
line_counter += 1
119117
data = line.strip()
120118
# compute hash of current row
121119
hash = hashlog.get_hash(data)

0 commit comments

Comments
 (0)