diff options
author | Benjamin Shirley-Quirk | 2020-08-04 21:52:42 +0000 |
---|---|---|
committer | Benjamin Shirley-Quirk | 2020-08-04 21:52:42 +0000 |
commit | 8ca6a6ae081fa6381e79b43d1363e5e5ce00c9ba (patch) | |
tree | 1885b9a46f54cdf85e25f2357b3f2992703ead90 /src/config.nim | |
parent | 4fad58d7be80d90058cf627a2f9bccbd6016e72b (diff) |
removed deprecated []= warnings
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..1afa89a 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: |