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

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
324 changed files with 1865 additions and 1879 deletions

View File

@@ -49,10 +49,10 @@ fn temp_unix() ?Addr {
// close it
// remove it
// then reuse the filename
mut file, filename := util.temp_file() ?
mut file, filename := util.temp_file()?
file.close()
os.rm(filename) ?
addrs := resolve_addrs(filename, .unix, .udp) ?
os.rm(filename)?
addrs := resolve_addrs(filename, .unix, .udp)?
return addrs[0]
}
@@ -161,7 +161,7 @@ pub fn resolve_addrs_fuzzy(addr string, @type SocketType) ?[]Addr {
}
pub fn resolve_ipaddrs(addr string, family AddrFamily, typ SocketType) ?[]Addr {
address, port := split_address(addr) ?
address, port := split_address(addr)?
if addr[0] == `:` {
match family {
@@ -191,10 +191,10 @@ pub fn resolve_ipaddrs(addr string, family AddrFamily, typ SocketType) ?[]Addr {
// This might look silly but is recommended by MSDN
$if windows {
socket_error(0 - C.getaddrinfo(&char(address.str), &char(sport.str), &hints, &results)) ?
socket_error(0 - C.getaddrinfo(&char(address.str), &char(sport.str), &hints, &results))?
} $else {
x := C.getaddrinfo(&char(address.str), &char(sport.str), &hints, &results)
wrap_error(x) ?
wrap_error(x)?
}
defer {