fix: s/ok_or/ok_or_else in relevant places
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
2b4a6c96ee
commit
e2c914cc11
4 changed files with 13 additions and 9 deletions
|
@ -342,7 +342,7 @@ impl Service {
|
|||
.transpose()?;
|
||||
let room_version = create_event_content
|
||||
.map(|create_event| create_event.room_version)
|
||||
.ok_or({
|
||||
.ok_or_else(|| {
|
||||
warn!("Invalid room version for room {room_id}");
|
||||
Error::BadDatabase("Invalid room version")
|
||||
})?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue