From 091a36a3d814a9f8df6e0ec80a687aef0f339e47 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sun, 18 Feb 2024 08:13:52 -0500 Subject: [PATCH] fix linter warnings --- relay/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/relay/config.py b/relay/config.py index a451347..94bc293 100644 --- a/relay/config.py +++ b/relay/config.py @@ -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