Skip to content

Commit

Permalink
🧹 utils: refactor a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed May 1, 2024
1 parent 88ec157 commit 8e69c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ void lvm_detect(std::optional<std::function<void()>> func_callback) noexcept {
const auto& lvm_vg = utils::exec("vgs -o vg_name --noheading 2>/dev/null");
const auto& lvm_lv = utils::exec("lvs -o vg_name,lv_name --noheading --separator - 2>/dev/null");

if (!(!lvm_lv.empty() && !lvm_vg.empty() && !lvm_pv.empty())) {
if (lvm_lv.empty() || lvm_vg.empty() || lvm_pv.empty()) {
return;
}

Expand Down

0 comments on commit 8e69c01

Please sign in to comment.