summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorNyaaori <+@nyaaori.cat>2022-11-21 09:51:39 +0100
committerNyaaori <+@nyaaori.cat>2022-11-21 20:50:39 +0100
commit66bc41125c244b3a1d17a5590882ba1b71212cc7 (patch)
treea99227d5e899bd7f3bd1250925f17abf1a4f5b4e /src/database
parent6786c44f4df96e7505b68c165b6a275b556f7ab6 (diff)
downloadconduit-66bc41125c244b3a1d17a5590882ba1b71212cc7.zip
refactor: cleanup
Diffstat (limited to 'src/database')
-rw-r--r--src/database/key_value/pusher.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/database/key_value/pusher.rs b/src/database/key_value/pusher.rs
index b203107..50a6fac 100644
--- a/src/database/key_value/pusher.rs
+++ b/src/database/key_value/pusher.rs
@@ -22,11 +22,10 @@ impl service::pusher::Data for KeyValueDatabase {
let mut key = sender.as_bytes().to_vec();
key.push(0xff);
key.extend_from_slice(ids.pushkey.as_bytes());
- return self
- .senderkey_pusher
+ self.senderkey_pusher
.remove(&key)
.map(|_| ())
- .map_err(Into::into);
+ .map_err(Into::into)
}
}
}