style(client/keys): rename signature key to signed key

This commit is contained in:
Jakub Kubík 2022-08-14 19:33:13 +02:00 committed by Nyaaori
parent c15205fb46
commit 0ddc3c01ef
No known key found for this signature in database
GPG Key ID: E7819C3ED4D1F82E

View File

@ -153,7 +153,7 @@ pub async fn upload_signatures_route(
let key = serde_json::to_value(key)
.map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Invalid key JSON"))?;
let is_signature_key = match key.get("usage") {
let is_signed_key = match key.get("usage") {
Some(usage) => usage
.as_array()
.map(|usage| !usage.contains(&json!("master")))
@ -161,7 +161,7 @@ pub async fn upload_signatures_route(
None => true,
};
if !is_signature_key {
if !is_signed_key {
continue;
}