mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 08:41:24 +01:00
enable if_not_else lint
This commit is contained in:
parent
a32b7c1ac1
commit
623824dc0c
6 changed files with 288 additions and 287 deletions
|
|
@ -66,10 +66,10 @@ impl Service {
|
|||
while stack.last().map_or(false, |s| s.is_empty()) {
|
||||
stack.pop();
|
||||
}
|
||||
if !stack.is_empty() {
|
||||
stack.last_mut().and_then(|s| s.pop())
|
||||
} else {
|
||||
if stack.is_empty() {
|
||||
None
|
||||
} else {
|
||||
stack.last_mut().and_then(|s| s.pop())
|
||||
}
|
||||
} {
|
||||
rooms_in_path.push(current_room.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue