mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🧹 misc: refactor to use utils::contains
This commit is contained in:
parent
5670da5c8a
commit
4789d2ca66
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user