Fix rm --exact / --matching not being invoked at all O_o

This commit is contained in:
Vitaliy Filippov
2024-12-28 21:47:00 +03:00
parent 42d40153ff
commit 383712148b
3 changed files with 15 additions and 9 deletions
-4
View File
@@ -691,10 +691,6 @@ resume_100:
std::function<bool(cli_result_t &)> cli_tool_t::start_rm(json11::Json cfg)
{
if (cfg["exact"].bool_value() || cfg["matching"].bool_value())
{
return start_rm_wildcard(cfg);
}
auto snap_remover = new snap_remover_t();
snap_remover->parent = this;
snap_remover->from_name = cfg["from"].string_value();