refactor: small improvements
This commit is contained in:
parent
ee96a03d60
commit
566833111c
4 changed files with 16 additions and 8 deletions
|
@ -62,7 +62,7 @@ pub async fn report_event_route(
|
|||
pdu.room_id,
|
||||
pdu.sender,
|
||||
body.score,
|
||||
HtmlEscape(&body.reason.clone().unwrap_or(String::new()))
|
||||
HtmlEscape(body.reason.as_deref().unwrap_or(""))
|
||||
),
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue