state-res: Replace if let with match
This commit is contained in:
parent
324fb58a62
commit
1a4b7903b8
@ -604,11 +604,10 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let current_state = if let Some(current_state) = previous_power_event {
|
let current_state = match previous_power_event {
|
||||||
current_state
|
Some(current_state) => current_state,
|
||||||
} else {
|
|
||||||
// If there is no previous m.room.power_levels event in the room, allow
|
// If there is no previous m.room.power_levels event in the room, allow
|
||||||
return Some(true);
|
None => return Some(true),
|
||||||
};
|
};
|
||||||
|
|
||||||
// If users key in content is not a dictionary with keys that are valid user IDs
|
// If users key in content is not a dictionary with keys that are valid user IDs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user