We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c818160 commit 6067a4fCopy full SHA for 6067a4f
1 file changed
src/FileFormats/MOF/read.jl
@@ -393,15 +393,12 @@ end
393
394
function function_to_moi(
395
::Val{:VectorOfVariables},
396
- ::Type{T},
+ ::Type,
397
object::Dict,
398
name_map::Dict{String,MOI.VariableIndex},
399
-) where {T}
400
- return MOI.VectorOfVariables(
401
- MOI.VariableIndex[
402
- name_map[variable] for variable::String in object["variables"]
403
- ],
404
- )
+)
+ variables = [name_map[variable::String] for variable in object["variables"]]
+ return MOI.VectorOfVariables(variables)
405
end
406
407
0 commit comments