about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-15 22:36:58 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-15 22:36:58 +0100
commitf9b6a0f06bc4f84543a24c8264e02ac89cfc2b4a (patch)
tree3e2a307af917db8a33ad05dbaa598eee379a1b0c /src/main.nim
parent5361862155de853f905cb25a2377f6503912f0da (diff)
downloadchawan-f9b6a0f06bc4f84543a24c8264e02ac89cfc2b4a.tar.gz
pager: improve content type handling
also remove some unused fields of Container
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.nim b/src/main.nim
index ff90568e..07d7df80 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -89,7 +89,7 @@ type ParamParseContext = object
   i: int
   next: string
   configPath: Option[string]
-  contentType: Option[string]
+  contentType: string
   charset: Charset
   dump: bool
   visual: bool
@@ -115,7 +115,7 @@ proc parseVisual(ctx: var ParamParseContext) =
   ctx.visual = true
 
 proc parseContentType(ctx: var ParamParseContext) =
-  ctx.contentType = some(ctx.getNext())
+  ctx.contentType = ctx.getNext()
 
 proc getCharset(ctx: var ParamParseContext): Charset =
   let s = ctx.getNext()