Skip to content

Commit eb4f866

Browse files
committed
removed unnessesary call to abs() in SqliteReader
1 parent 0a6f9e5 commit eb4f866

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

can/io/sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __iter__(self):
5454
def __len__(self):
5555
# this might not run in constant time
5656
result = self.cursor.execute("SELECT COUNT(*) FROM messages")
57-
return abs(int(result.fetchone()[0]))
57+
return int(result.fetchone()[0])
5858

5959
def read_all(self):
6060
"""Fetches all messages in the database."""

0 commit comments

Comments
 (0)