Skip to content
Snippets Groups Projects
Commit 32a211d3 authored by Radko Krkoš's avatar Radko Krkoš
Browse files

Server: Use max() instead of if

* Silences a pylint warning.
parent 18d229ac
No related branches found
No related tags found
No related merge requests found
......@@ -1777,7 +1777,7 @@ class WardenHandler(ObjectBase):
if id <= 0:
# Client wants to get only last N events and reset server notion of last id
id += self.db.getLastEventId()
if id < 0: id = 0
id = max(id, 0)
try:
count = int(count[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment