Skip to content

Commit 05d714c

Browse files
committed
doc: remove useless haskey
1 parent b253406 commit 05d714c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/manual/mtk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function generate_f_h(model, inputs, outputs)
8686
return nothing
8787
end
8888
ic = initial_conditions(io_sys)
89-
p_map = Dict(sym => ic[sym] for sym in p_sym if haskey(ic, sym))
89+
p_map = Dict(sym => ic[sym] for sym in p_sym)
9090
p = ModelingToolkit.varmap_to_vars(p_map, p_sym)
9191
return f!, h!, p, x_sym, p_sym, nu, nx, ny
9292
end

0 commit comments

Comments
 (0)