Skip to content

Commit 34a8e92

Browse files
committed
minor improvement
1 parent 18a49ce commit 34a8e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/Serialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function unpackVariable(dfg::AbstractDFG,
240240
# TODO dont hardcode the ppeType (which is already discovered for each entry in _updatePPE)
241241
ppedict = Dict{Symbol, MeanMaxPPE}()
242242
for pd in packedProps["ppes"]
243-
_type = haskey(pd, "_type") ? pd["_type"] : "DistributedFactorGraphs.MeanMaxPPE"
243+
_type = get(pd, "_type", "DistributedFactorGraphs.MeanMaxPPE")
244244
ppedict[Symbol(pd["solveKey"])] = _unpackPPE(pd; _type)
245245
end
246246
ppedict

0 commit comments

Comments
 (0)