aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
authorj-james2020-11-06 20:11:37 +0000
committerj-james2020-11-06 20:11:37 +0000
commit3eb14df9811583e4c4034f76604895cf79f311f1 (patch)
treed2dfc09d82bd5d9bdb2145a497c1db38ec9750e6 /src/config.nim
parent7242638eb774b39b3c0fe0f4d2c24e9138edfd24 (diff)
Fix warnings introduced in Nim 1.4
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim4
1 files changed, 2 insertions, 2 deletions
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: