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