From 2d61656ddbcbaeaf73adb05b7f05abffcb80fdd3 Mon Sep 17 00:00:00 2001 From: ngn Date: Tue, 21 Jan 2025 05:48:52 +0300 Subject: [PATCH] actual shit syntax Signed-off-by: ngn --- src/auth.nim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/auth.nim b/src/auth.nim index c36e41b..163e51d 100644 --- a/src/auth.nim +++ b/src/auth.nim @@ -187,16 +187,13 @@ proc setRateLimit*(account: GuestAccount; api: Api; remaining, reset: int) = proc initAccountPool*(cfg: Config) = let path = cfg.accountsFile - let is_jsonl = path.endswith(".jsonl") - let path_exists = fileExists(path) - enableLogging = cfg.enableDebug - if !is_jsonl: + if not path.endswith(".jsonl"): log "Accounts file should be formated with JSONL" quit 1 - if !path_exists: + if not fileExists(path): log "Failed to access the accounts file (", path, ")" quit 1