From e8bc7ef109abc49bcf181a75ff876da109ce9534 Mon Sep 17 00:00:00 2001 From: Noah Treuhaft Date: Wed, 18 Dec 2024 13:06:19 -0500 Subject: [PATCH] Address PR feedback even harder --- runtime/vam/op/exprswitch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/vam/op/exprswitch.go b/runtime/vam/op/exprswitch.go index e4d55f459a..e9e0f3f7da 100644 --- a/runtime/vam/op/exprswitch.go +++ b/runtime/vam/op/exprswitch.go @@ -36,7 +36,7 @@ func (s *ExprSwitch) AddCase(val *super.Value) vector.Puller { } func (s *ExprSwitch) forward(vec vector.Any) bool { - clear(s.caseIndexes) + defer clear(s.caseIndexes) exprVec := s.expr.Eval(vec) for i := range exprVec.Len() { s.builder.Truncate()