mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-12-22 03:01:08 +00:00
fix linter warnings
This commit is contained in:
parent
c704c1e72c
commit
091a36a3d8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue