fix: unused validator args had an incorrect if check

This commit is contained in:
Kasey White
2023-04-03 15:59:58 -04:00
committed by Kasey
parent 3f45b524b8
commit f4ba6b8985
6 changed files with 19 additions and 19 deletions

View File

@@ -4804,7 +4804,7 @@ impl<'a> CodeGenerator<'a> {
for (index, arg) in arguments.iter().enumerate().rev() {
if !(has_context && index == arguments.len() - 1)
|| arg.arg_name.get_variable_name().unwrap_or("_") != "_"
&& arg.arg_name.get_variable_name().unwrap_or("_") != "_"
{
let mut air_stack = AirStack::new(self.id_gen.clone());