Collapse an else { if ... }
as suggested by clippy.
This commit is contained in:
committed by
Damir Jelić
parent
8fa411aaa0
commit
38f34e66eb
@@ -770,12 +770,10 @@ impl App {
|
||||
})
|
||||
.collect(),
|
||||
);
|
||||
} else {
|
||||
if let Some((query, room)) =
|
||||
} else if let Some((query, room)) =
|
||||
view.get_text().zip(self.room_view.room())
|
||||
{
|
||||
let mut room_search =
|
||||
room.search_messages(query, 5);
|
||||
let mut room_search = room.search_messages(query, 5);
|
||||
|
||||
let mut all_results = Vec::new();
|
||||
while let Some(results) =
|
||||
@@ -787,7 +785,6 @@ impl App {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Esc => self.set_global_mode(GlobalMode::Default),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user