about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-14 01:55:40 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-14 01:55:40 +0100
commit871bd4999b0b3da32e2967c09d3d82d13637e70f (patch)
treec7a0d1de668a4e84942d00ef1ca492ed20510f25 /src/config
parent5a8c69a385c8cbd653452f1042b229d5ba8afad7 (diff)
downloadchawan-871bd4999b0b3da32e2967c09d3d82d13637e70f.tar.gz
chapath: add missing return
Diffstat (limited to 'src/config')
-rw-r--r--src/config/chapath.nim3
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] =