fix: remove unused this capture

This commit is contained in:
Marcus Holland-Moritz 2024-08-15 13:02:59 +02:00
parent 61336c941a
commit 011b8b1af5

View File

@ -470,15 +470,14 @@ os_access_mock::map_file(fs::path const& path, size_t size) const {
}
return std::make_unique<mmap_mock>(
de->v | match{
[this](std::string const& str) { return str; },
[this](std::function<std::string()> const& fun) {
return fun();
},
[this](auto const&) -> std::string {
throw std::runtime_error("oops in match");
},
de->v |
match{
[](std::string const& str) { return str; },
[](std::function<std::string()> const& fun) { return fun(); },
[](auto const&) -> std::string {
throw std::runtime_error("oops in match");
},
},
size);
}