Commit b1c1571
Remove dead counting loop in GenerateAssetMappings
The first pass of _countJsonArrayElements increments depth on every
'{' or '[', so the subsequent 'else if (c == "{" && depth == 1)'
branch is unreachable and count is always 0. The second pass (with
depth tracking only for '['/']') is what actually produces the count.
Drop the dead first loop. imx_tokens.json entries are flat, so the
remaining logic correctly counts top-level array objects.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 159f77e commit b1c1571
1 file changed
Lines changed: 0 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 114 | | |
138 | 115 | | |
139 | 116 | | |
| |||
0 commit comments