Skip to content

Commit 9dadcb0

Browse files
committed
Fix new upgrade script
1 parent 21cd6da commit 9dadcb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serialization/Upgrades/1.6.0-1.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
push!(upgrade_scripts_set, UpgradeScript(
22
v"1.6.0-1",
3-
function upgrade_1_6_0_1(s::UpgradeState, dict::Dict)
3+
function upgrade_1_6_0_1(s::UpgradeState, dict::AbstractDict{Symbol, Any})
44
# recurse upgrade on containers
55
upgrade_containers(upgrade_1_6_0_1, s, dict)
66

77
# Upgrades
8-
if dict[:_type] isa Dict && get(dict[:_type], :name, "") == "RationalFunctionField"
8+
if dict[:_type] isa AbstractDict && get(dict[:_type], :name, nothing) == "RationalFunctionField"
99
if dict[:data][:symbols] isa String
1010
dict[:data][:symbol] = dict[:data][:symbols]
1111
delete!(dict[:data], :symbols)

0 commit comments

Comments
 (0)