diff options
author | j-james | 2020-11-06 20:11:37 +0000 |
---|---|---|
committer | j-james | 2020-11-06 20:11:37 +0000 |
commit | 3eb14df9811583e4c4034f76604895cf79f311f1 (patch) | |
tree | d2dfc09d82bd5d9bdb2145a497c1db38ec9750e6 /src/config.nim | |
parent | 7242638eb774b39b3c0fe0f4d2c24e9138edfd24 (diff) |
Fix warnings introduced in Nim 1.4
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 4 |
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: |