]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fixup comment and condition readability
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Dec 2023 11:58:09 +0000 (12:58 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Dec 2023 11:58:10 +0000 (12:58 +0100)
(not macro specific)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/api2/config/acme.rs

index 94315f61cd268a2e54a9766c3a9732877bea897b..1ee64028a38a0660568d47f9e87f917a85c5e326 100644 (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."