Skip to content

Commit 0ed90df

Browse files
committed
Improve type stability of more functions for JET
1 parent c818160 commit 0ed90df

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/FileFormats/MOF/read.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,12 @@ end
393393

394394
function function_to_moi(
395395
::Val{:VectorOfVariables},
396-
::Type{T},
396+
::Type,
397397
object::Dict,
398398
name_map::Dict{String,MOI.VariableIndex},
399-
) where {T}
399+
)
400400
return MOI.VectorOfVariables(
401-
MOI.VariableIndex[
402-
name_map[variable] for variable::String in object["variables"]
403-
],
401+
[name_map[variable::String] for variable in object["variables"]],
404402
)
405403
end
406404

0 commit comments

Comments
 (0)