Reuse variable in next_input_event()

This commit is contained in:
Johannes Altmanninger
2025-09-21 08:13:41 +02:00
parent 064a45635c
commit 3bd296ae3d

View File

@@ -560,7 +560,7 @@ fn next_input_event(in_fd: RawFd) -> InputEventTrigger {
// Get the uvar notifier fd (possibly none).
let notifier = default_notifier();
let notifier_fd = notifier.notification_fd();
if let Some(notifier_fd) = notifier.notification_fd() {
if let Some(notifier_fd) = notifier_fd {
fdset.add(notifier_fd);
}