1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136)

This commit is contained in:
Lukas Neubert
2021-03-06 20:04:51 +01:00
committed by GitHub
parent 7a9d9f1e78
commit fdcfe397d4
17 changed files with 48 additions and 38 deletions

View File

@ -20,7 +20,7 @@ const (
fn testsuite_begin() {
os.chdir(vroot)
if os.exists(serverexe) {
os.rm(serverexe) or { }
os.rm(serverexe) or {}
}
}
@ -260,7 +260,7 @@ fn simple_tcp_client(config SimpleTcpClientConfig) ?string {
client.set_read_timeout(tcp_r_timeout)
client.set_write_timeout(tcp_w_timeout)
defer {
client.close() or { }
client.close() or {}
}
message := 'GET $config.path HTTP/1.1
Host: $config.host