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

@ -14,21 +14,21 @@ fn main() {
}
// create TCP listener
mut listener := net.listen_tcp(.ip, 'localhost:9001') ?
mut listener := net.listen_tcp(.ip, 'localhost:9001')?
defer {
listener.close() or {}
}
addr := listener.addr() ?
addr := listener.addr()?
eprintln('Listening on $addr')
eprintln('Type `stop` to stop the server')
// create file descriptor notifier
mut notifier := notify.new() ?
mut notifier := notify.new()?
defer {
notifier.close() or {}
}
notifier.add(os.stdin().fd, .read) ?
notifier.add(listener.sock.handle, .read) ?
notifier.add(os.stdin().fd, .read)?
notifier.add(listener.sock.handle, .read)?
for {
for event in notifier.wait(time.infinite) {