Skip to content

Commit 4efc408

Browse files
authored
Merge pull request #240 from pepijndevos/getmetadata
hopefully fix getemetadata default
2 parents 08f746d + e241e23 commit 4efc408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function getmetadata(s::Symbolic, ctx)
6969
end
7070

7171
function getmetadata(s::Symbolic, ctx, default)
72-
s.metadata isa Ref ? get(s.metadata[], ctx, default) : default
72+
s.metadata isa AbstractDict ? get(s.metadata, ctx, default) : default
7373
end
7474

7575
# pirated for Setfield purposes:

0 commit comments

Comments
 (0)