Simplify code

This commit is contained in:
Kovid Goyal 2023-01-18 16:16:11 +05:30
parent bf7d27691c
commit 26ca3f9bad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 0 additions and 7 deletions

View File

@ -67,10 +67,6 @@ func read_from_tty(pipe_r *os.File, term *tty.Term, results_channel chan<- []byt
}
if selector.IsReadyToRead(pipe_fd) {
keep_going = false
return
}
if selector.IsReadyToRead(tty_fd) {
return
}
}

View File

@ -152,9 +152,6 @@ func write_to_tty(
break
}
}
if selector.IsReadyToWrite(tty_fd) {
return
}
if selector.IsReadyToRead(pipe_fd) {
keep_going = false
}