mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Simplify code
This commit is contained in:
@@ -67,10 +67,6 @@ func read_from_tty(pipe_r *os.File, term *tty.Term, results_channel chan<- []byt
|
|||||||
}
|
}
|
||||||
if selector.IsReadyToRead(pipe_fd) {
|
if selector.IsReadyToRead(pipe_fd) {
|
||||||
keep_going = false
|
keep_going = false
|
||||||
return
|
|
||||||
}
|
|
||||||
if selector.IsReadyToRead(tty_fd) {
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -152,9 +152,6 @@ func write_to_tty(
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if selector.IsReadyToWrite(tty_fd) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if selector.IsReadyToRead(pipe_fd) {
|
if selector.IsReadyToRead(pipe_fd) {
|
||||||
keep_going = false
|
keep_going = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user