From 46abbdbedad40fc966a900e0fcd205e087d10f31 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 19 Sep 2024 13:24:16 +0200 Subject: [PATCH] Use pairs --- core/src/util.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/util.jl b/core/src/util.jl index 3af11a443..4bde59c6d 100644 --- a/core/src/util.jl +++ b/core/src/util.jl @@ -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