Skip to content

Commit 25289ba

Browse files
committed
chore(sdk): Code cleanup.
This patch puts the `Ok` outside the `match` for a better ergonomics.
1 parent 17bc955 commit 25289ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/matrix-sdk/src/event_cache/deduplicator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ impl Deduplicator {
9191
});
9292
}
9393

94-
match self {
95-
Deduplicator::InMemory(dedup) => Ok(dedup.filter_duplicate_events(events, room_events)),
94+
Ok(match self {
95+
Deduplicator::InMemory(dedup) => dedup.filter_duplicate_events(events, room_events),
9696
Deduplicator::PersistentStore(dedup) => {
97-
dedup.filter_duplicate_events(events, room_events).await
97+
dedup.filter_duplicate_events(events, room_events).await?
9898
}
99-
}
99+
})
100100
}
101101
}
102102

0 commit comments

Comments
 (0)