Empty pre-commit config (#33)

This commit is contained in:
Dustin J. Mitchell
2024-09-30 21:16:26 -04:00
committed by GitHub
parent a132238f68
commit a7b313c4b3
8 changed files with 36 additions and 34 deletions

View File

@ -47,7 +47,7 @@ impl<'a> StorageTxn for InnerTxn<'a> {
}
fn new_client(&mut self, client_id: Uuid, latest_version_id: Uuid) -> anyhow::Result<()> {
if self.0.clients.get(&client_id).is_some() {
if self.0.clients.contains_key(&client_id) {
return Err(anyhow::anyhow!("Client {} already exists", client_id));
}
self.0.clients.insert(