chore: ran v fmt

v-0.3.3
Jef Roosens 2022-11-02 20:42:34 +01:00
parent 20874bfb0b
commit 2dcee45406
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 4 additions and 4 deletions

View File

@ -115,10 +115,10 @@ fn (mut d DockerConn) read_response_body(length int) !string {
fn (mut d DockerConn) read_response() !(http.Response, string) { fn (mut d DockerConn) read_response() !(http.Response, string) {
head := d.read_response_head()! head := d.read_response_head()!
// 204 means "No Content", so we can assume nothing follows after this // 204 means "No Content", so we can assume nothing follows after this
if head.status_code == 204 { if head.status_code == 204 {
return head, '' return head, ''
} }
if head.header.get(http.CommonHeader.transfer_encoding) or { '' } == 'chunked' { if head.header.get(http.CommonHeader.transfer_encoding) or { '' } == 'chunked' {
mut builder := strings.new_builder(1024) mut builder := strings.new_builder(1024)