aboutsummaryrefslogtreecommitdiff
path: root/src/garage/admin_rpc.rs
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2021-01-15 15:44:44 +0100
committerQuentin <quentin@deuxfleurs.fr>2021-01-15 15:44:44 +0100
commitf496e41ef4298a579810046bcff794a24cdb7e07 (patch)
treee279e8f73934acbf90b707884ba4566da28963d8 /src/garage/admin_rpc.rs
parent2f4378a9c42cc3a78b992905e980e8977e6c5e58 (diff)
downloadgarage-f496e41ef4298a579810046bcff794a24cdb7e07.tar.gz
garage-f496e41ef4298a579810046bcff794a24cdb7e07.zip
Replace an already done check by unreachable!()
Diffstat (limited to 'src/garage/admin_rpc.rs')
-rw-r--r--src/garage/admin_rpc.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs
index 39dc0ed8..e1981e3a 100644
--- a/src/garage/admin_rpc.rs
+++ b/src/garage/admin_rpc.rs
@@ -175,9 +175,7 @@ impl AdminRpcHandler {
Ok(AdminRPC::Ok(msg.to_string()))
} else {
- return Err(Error::Message(format!(
- "Bucket is deleted in update_bucket_key"
- )));
+ unreachable!();
}
}
}