fmt: remove space in front of ? and ! (#14366)

This commit is contained in:
Daniel Däschle 2022-05-13 05:56:21 +02:00 committed by GitHub
parent df029da942
commit d679146a80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
324 changed files with 1865 additions and 1879 deletions

View file

@ -51,7 +51,7 @@ fn start_server(family net.AddrFamily, listen_port int) ? {
return false
}
return true
}) ?
})?
s.on_message(fn (mut ws websocket.Client, msg &websocket.Message) ? {
match msg.opcode {
.pong { ws.write_string('pong') or { panic(err) } }
@ -70,9 +70,9 @@ fn ws_test(family net.AddrFamily, uri string) ? {
eprintln('connecting to $uri ...')
mut test_results := WebsocketTestResults{}
mut ws := websocket.new_client(uri) ?
mut ws := websocket.new_client(uri)?
ws.on_open(fn (mut ws websocket.Client) ? {
ws.pong() ?
ws.pong()?
assert true
})
ws.on_error(fn (mut ws websocket.Client, err string) ? {