Removed "anyMatched" variable as unused

This commit is contained in:
2025-08-08 17:07:13 +04:00
parent bf66431089
commit d8fa0b02d7
@@ -49,7 +49,6 @@ namespace Telegrator.MadiatorCore.Descriptors
public Result Validate(FilterExecutionContext<Update> filterContext, bool formReport, ref FiltersFallbackReport report)
{
bool anyErrors = false;
bool anyMatches = false;
if (UpdateValidator != null)
{
@@ -70,7 +69,6 @@ namespace Telegrator.MadiatorCore.Descriptors
}
else
{
//anyMatches = true; // DO NOT COUNT
filterContext.CompletedFilters.Add(UpdateValidator);
}
}
@@ -94,7 +92,6 @@ namespace Telegrator.MadiatorCore.Descriptors
}
else
{
anyMatches = true;
filterContext.CompletedFilters.Add(StateKeeperValidator);
}
}
@@ -121,7 +118,6 @@ namespace Telegrator.MadiatorCore.Descriptors
}
else
{
anyMatches = true;
filterContext.CompletedFilters.Add(filter);
}
}