diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-14 01:55:40 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-14 01:55:40 +0100 |
commit | 871bd4999b0b3da32e2967c09d3d82d13637e70f (patch) | |
tree | c7a0d1de668a4e84942d00ef1ca492ed20510f25 /src/config | |
parent | 5a8c69a385c8cbd653452f1042b229d5ba8afad7 (diff) | |
download | chawan-871bd4999b0b3da32e2967c09d3d82d13637e70f.tar.gz |
chapath: add missing return
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/chapath.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/chapath.nim b/src/config/chapath.nim index 8f1ff539..adf852a0 100644 --- a/src/config/chapath.nim +++ b/src/config/chapath.nim @@ -236,12 +236,13 @@ proc flushCurlyExpand(ctx: var UnquoteContext, word: string): else: assert false ctx.subChar = '\0' ctx.hasColon = false + return ok() proc stateCurlyExpand(ctx: var UnquoteContext, c: char): ChaPathResult[void] = # ${ident:-[word], ${ident:=[word], ${ident:?[word], ${ident:+[word] # word must be unquoted too. let word = ?unquote(ctx.p, ctx.i, some('}')) - ctx.flushCurlyExpand(word) + return ctx.flushCurlyExpand(word) proc unquote(p: string, starti: var int, terminal: Option[char]): ChaPathResult[string] = |