Simplify code
This commit is contained in:
parent
bf7d27691c
commit
26ca3f9bad
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -152,9 +152,6 @@ func write_to_tty(
|
||||
break
|
||||
}
|
||||
}
|
||||
if selector.IsReadyToWrite(tty_fd) {
|
||||
return
|
||||
}
|
||||
if selector.IsReadyToRead(pipe_fd) {
|
||||
keep_going = false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user