mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
clippy
This commit is contained in:
parent
7b988d820d
commit
47f91ce3e2
@ -163,11 +163,10 @@ pub fn handle_inner(pubkey: Pubkey, command: Value) -> Result<Option<Value>, Err
|
||||
filter
|
||||
};
|
||||
let screen = |e: &Event| -> ScreenResult {
|
||||
if allowed_kinds.contains(&e.kind()) {
|
||||
ScreenResult::Mismatch
|
||||
} else if e.kind().is_ephemeral() {
|
||||
ScreenResult::Mismatch
|
||||
} else if crate::is_authorized_user(e.pubkey()) {
|
||||
if allowed_kinds.contains(&e.kind())
|
||||
|| e.kind().is_ephemeral()
|
||||
|| crate::is_authorized_user(e.pubkey())
|
||||
{
|
||||
ScreenResult::Mismatch
|
||||
} else {
|
||||
ScreenResult::Match
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user