Skip to content

Commit

Permalink
🧹 misc: refactor to use utils::contains
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 13, 2024
1 parent 5670da5 commit 4789d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4789d2c

Please sign in to comment.