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:
@ -15,10 +15,10 @@ fn C.strncpy(&char, &char, int)
|
||||
fn shutdown(handle int) ? {
|
||||
$if windows {
|
||||
C.shutdown(handle, C.SD_BOTH)
|
||||
net.socket_error(C.closesocket(handle)) ?
|
||||
net.socket_error(C.closesocket(handle))?
|
||||
} $else {
|
||||
C.shutdown(handle, C.SHUT_RDWR)
|
||||
net.socket_error(C.close(handle)) ?
|
||||
net.socket_error(C.close(handle))?
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,13 +47,13 @@ fn @select(handle int, test Select, timeout time.Duration) ?bool {
|
||||
|
||||
match test {
|
||||
.read {
|
||||
net.socket_error(C.@select(handle + 1, &set, C.NULL, C.NULL, timeval_timeout)) ?
|
||||
net.socket_error(C.@select(handle + 1, &set, C.NULL, C.NULL, timeval_timeout))?
|
||||
}
|
||||
.write {
|
||||
net.socket_error(C.@select(handle + 1, C.NULL, &set, C.NULL, timeval_timeout)) ?
|
||||
net.socket_error(C.@select(handle + 1, C.NULL, &set, C.NULL, timeval_timeout))?
|
||||
}
|
||||
.except {
|
||||
net.socket_error(C.@select(handle + 1, C.NULL, C.NULL, &set, timeval_timeout)) ?
|
||||
net.socket_error(C.@select(handle + 1, C.NULL, C.NULL, &set, timeval_timeout))?
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ fn wait_for_common(handle int, deadline time.Time, timeout time.Duration, test S
|
||||
if timeout < 0 {
|
||||
return net.err_timed_out
|
||||
}
|
||||
ready := @select(handle, test, timeout) ?
|
||||
ready := @select(handle, test, timeout)?
|
||||
if ready {
|
||||
return
|
||||
}
|
||||
@ -82,7 +82,7 @@ fn wait_for_common(handle int, deadline time.Time, timeout time.Duration, test S
|
||||
return net.err_timed_out
|
||||
}
|
||||
|
||||
ready := @select(handle, test, d_timeout) ?
|
||||
ready := @select(handle, test, d_timeout)?
|
||||
if ready {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user