mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Fix clippy lint
This commit is contained in:
parent
2065e1012c
commit
4d49b4c1d1
@ -16,10 +16,8 @@ pub fn start_resize_thread(
|
||||
// This thread will listen to SIGWINCH events and report them.
|
||||
while resize_running.load(Ordering::Relaxed) {
|
||||
// We know it will only contain SIGWINCH signals, so no need to check.
|
||||
if signals.wait().count() > 0 {
|
||||
if resize_sender.send(()).is_err() {
|
||||
return;
|
||||
}
|
||||
if signals.wait().count() > 0 && resize_sender.send(()).is_err() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user