refactor: appease clippy
This commit is contained in:
parent
d841b81c56
commit
4c06f329c4
3 changed files with 12 additions and 6 deletions
|
@ -133,8 +133,7 @@ impl Service {
|
|||
.ok_or_else(|| Error::bad_database("Event in space state not found"))?;
|
||||
|
||||
if serde_json::from_str::<SpaceChildEventContent>(pdu.content.get())
|
||||
.ok()
|
||||
.and_then(|c| Some(c.via))
|
||||
.ok().map(|c| c.via)
|
||||
.map_or(true, |v| v.is_empty())
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue