diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-28 21:19:21 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-28 21:23:26 +0100 |
commit | d91d1dda2ad1219b3b798eafc14151811ed9a1b3 (patch) | |
tree | f82d8da0763f0dbc62dedb2aa9aaa51114d2aad9 /src/types | |
parent | b035e53d641d71fab89f92cd8d5188501be0d058 (diff) | |
download | chawan-d91d1dda2ad1219b3b798eafc14151811ed9a1b3.tar.gz |
Compile with styleCheck:usages
much better
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/cookie.nim | 2 | ||||
-rw-r--r-- | src/types/formdata.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/types/cookie.nim b/src/types/cookie.nim index 872e97dd..93daf2a3 100644 --- a/src/types/cookie.nim +++ b/src/types/cookie.nim @@ -164,7 +164,7 @@ func cookieDomainMatches(cookieDomain: string, url: URL): bool = cookieDomain return host.endsWith(cookieDomain) -proc add*(cookiejar: CookieJar, cookie: Cookie) = +proc add*(cookieJar: CookieJar, cookie: Cookie) = var i = -1 for j in 0 ..< cookieJar.cookies.len: let old = cookieJar.cookies[j] diff --git a/src/types/formdata.nim b/src/types/formdata.nim index b1957998..02a08d15 100644 --- a/src/types/formdata.nim +++ b/src/types/formdata.nim @@ -76,7 +76,7 @@ proc writeEntry*(stream: Stream, entry: FormDataEntry, boundary: string) = if blob.isfile: let fs = newFileStream(WebFile(blob).path) if fs != nil: - var buf {.noInit.}: array[4096, uint8] + var buf {.noinit.}: array[4096, uint8] while true: let n = fs.readData(addr buf[0], 4096) stream.writeData(addr buf[0], n) |