🧹 misc: refactor to use utils::contains

This commit is contained in:
Vladislav Nepogodin 2024-07-14 02:56:04 +04:00
parent 5670da5c8a
commit 4789d2ca66
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -96,7 +96,7 @@ bool confirm_mount([[maybe_unused]] const std::string_view& part_user, bool quit
}
// remove current mount from all partitions list
std::erase_if(partitions, [partition](std::string_view x) { return x.find(partition) != std::string_view::npos; });
std::erase_if(partitions, [partition](std::string_view x) { return gucc::utils::contains(x, partition); });
number_partitions -= 1;
return true;
}