Skip to content

Commit bbdc060

Browse files
committed
reverted unnecessary change
1 parent 071bebf commit bbdc060

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_util.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ Return string representing a short description of `vi`.
8484
"""
8585
short_varinfo_name(vi::DynamicPPL.ThreadSafeVarInfo) =
8686
"threadsafe($(short_varinfo_name(vi.varinfo)))"
87-
function short_varinfo_name(vi::TypedVarInfo)
88-
return "TypedVarInfo"
89-
end
87+
short_varinfo_name(::TypedVarInfo) = "TypedVarInfo"
9088
short_varinfo_name(::UntypedVarInfo) = "UntypedVarInfo"
9189
short_varinfo_name(::SimpleVarInfo{<:NamedTuple}) = "SimpleVarInfo{<:NamedTuple}"
9290
short_varinfo_name(::SimpleVarInfo{<:OrderedDict}) = "SimpleVarInfo{<:OrderedDict}"

0 commit comments

Comments
 (0)