]> git.proxmox.com Git - pve-storage.git/commit
zpool: activate: move mount check out and make program flow easier
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 14:21:16 +0000 (15:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 14:21:21 +0000 (15:21 +0100)
commit26de022b5655b47a427ab325673e1cb1cb54d524
tree5a94048ccd411a59775523e679914c44f8bb6c3a
parent9440330abadd432306afe397c51c57c97ed23920
zpool: activate: move mount check out and make program flow easier

Early return when mounted heuristics returns true, that allows to get
rid of an indentation level.

Moving the heuristic out makes the activate method smaller and easier
to grasp

Best viewed with ignoring whitespace changes (`git show -w`).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm