Skip to content

Commit 268169d

Browse files
committed
tidy
1 parent 08dcecd commit 268169d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ack_backend/src/utils_for_ack_lambda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
from clients import s3_client
44

5+
56
def get_row_count(bucket_name: str, file_key: str) -> int:
67
"""
78
Looks in the given bucket and returns the count of the number of lines in the given file.
89
NOTE: Blank lines are not included in the count.
910
"""
1011
response = s3_client.get_object(Bucket=bucket_name, Key=file_key)
11-
return sum(1 for line in response["Body"].iter_lines() if line.strip())
12+
return sum(1 for line in response["Body"].iter_lines() if line.strip())

0 commit comments

Comments
 (0)