Skip to content

Commit ebbbaf4

Browse files
committed
Fix: Remove double substraction of num_unclosed_if
1 parent 10730ce commit ebbbaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chunker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl Chunker {
238238
// TODO: Check with stack analyzer to see if adding the builder is better or not.
239239
num_unclosed_ifs += builder.num_unclosed_ifs();
240240
chunk_len += block_len;
241-
if num_unclosed_ifs + builder.num_unclosed_ifs() == 0 {
241+
if num_unclosed_ifs == 0 {
242242
// We are going to keep this structured script in the chunk
243243
// Reset the undo information
244244
chunk_scripts.extend(undo_info.reset());

0 commit comments

Comments
 (0)