diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java index 68d684967..c8902b989 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java @@ -323,8 +323,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor { blockIndexMap.add(mappedIndex); blockIds.add(RenderingUtil.indexToId(mappedIndex)); } - mappedIndex = blockIndexMap.get(index); - return blockIds.get(mappedIndex); + return blockIds.get(index); } @Override