From 17429fdfc4387dbf435108cf1900b2d30e7fd535 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 14 Sep 2023 10:37:26 +1200 Subject: [PATCH] Apply suggestions from code review --- src/macros.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.jl b/src/macros.jl index a74c7eb70e1..4c94d09d3b6 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -1947,9 +1947,9 @@ macro expression(args...) Containers.container_code(idxvars, indices, code, requested_container) # Wrap the entire code block in a let statement to make the model act as # a type stable local variable. - creation_code = quote + code = quote let $m = $m - $creation_code + $code end end # don't do anything with the model, but check that it's valid anyway