fix linter warnings

This commit is contained in:
Izalia Mae 2024-02-18 08:13:52 -05:00
parent c704c1e72c
commit 091a36a3d8

View file

@ -188,9 +188,7 @@ class Config:
raise KeyError(key)
if key in {'port', 'pg_port', 'workers'} and not isinstance(value, int):
value = int(value)
if value < 1:
if (value := int(value)) < 1:
if key == 'port':
value = 8080