]> git.proxmox.com Git - proxmox-backup.git/commit
datastore: list images: reduce indentation depth on error checking
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Sep 2023 09:01:28 +0000 (11:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Sep 2023 09:05:10 +0000 (11:05 +0200)
commit5b16dffcf28884621791a68b98ae2339f17ea90c
treed87d2d0b11edda18bcd3749e028ff68552182caf
parent6d5b559bdb4fa9d055919d80b1e5ab51993a9ac5
datastore: list images: reduce indentation depth on error checking

Simply pull out the inner IO error and the affected path first.

Clean up style-wise a bit while touching this anyway, but no semantic
change intended.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-datastore/src/datastore.rs