mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 14:07:59 +00:00
fix linter warnings
This commit is contained in:
parent
c704c1e72c
commit
091a36a3d8
|
@ -188,9 +188,7 @@ class Config:
|
||||||
raise KeyError(key)
|
raise KeyError(key)
|
||||||
|
|
||||||
if key in {'port', 'pg_port', 'workers'} and not isinstance(value, int):
|
if key in {'port', 'pg_port', 'workers'} and not isinstance(value, int):
|
||||||
value = int(value)
|
if (value := int(value)) < 1:
|
||||||
|
|
||||||
if value < 1:
|
|
||||||
if key == 'port':
|
if key == 'port':
|
||||||
value = 8080
|
value = 8080
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue