From 3eb14df9811583e4c4034f76604895cf79f311f1 Mon Sep 17 00:00:00 2001 From: j-james Date: Fri, 6 Nov 2020 12:11:37 -0800 Subject: Fix warnings introduced in Nim 1.4 --- src/config.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.nim') diff --git a/src/config.nim b/src/config.nim index e8be1fc..e54b7b9 100644 --- a/src/config.nim +++ b/src/config.nim @@ -81,9 +81,9 @@ proc readConfigFile*(configFile: string): table[currentCategory] = category elif currentCategory.len > 0: if line.match(re"(\w+)\ *=\ *(.*)", matches): - category[].add(matches[0], matches[1]) + category[matches[0]] = matches[1] else: - category[].add(line, "") + category[line] = "" false except EOFError: -- cgit v1.2.3-70-g09d2