fixup comment and condition readability

(not macro specific)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-12-06 12:58:09 +01:00
parent 54ddd689ab
commit 67cb8f4351

View File

@ -217,8 +217,8 @@ fn register_account(
});
// TODO: this should be done via the api definition, but
// the api macro currently lacks this ability (2023-11-06)
if eab_kid.is_some() ^ eab_hmac_key.is_some() {
// the api schema currently lacks this ability (2023-11-06)
if eab_kid.is_some() != eab_hmac_key.is_some() {
http_bail!(
BAD_REQUEST,
"either both or none of 'eab_kid' and 'eab_hmac_key' have to be set."