Skip to content

Commit

Permalink
Use pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored Sep 19, 2024
1 parent c353c7a commit 46abbdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,7 @@ function get_state_index(
else
snake_case(Symbol(id.type))
end

for (comp, range) in zip(keys(NT), values(NT))
for (comp, range) in pairs(NT)
if comp == component_name
return range[id.idx]
end
Expand Down

0 comments on commit 46abbdb

Please sign in to comment.