mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-09 01:57:58 +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