We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b36a4 commit d834d78Copy full SHA for d834d78
1 file changed
src/tensors/abstracttensor.jl
@@ -54,10 +54,6 @@ function storagetype(::Type{T}) where {T <: AbstractTensorMap}
54
if T isa Union
55
# attempt to be slightly more specific by promoting unions
56
return promote_storagetype(T.a, T.b)
57
- elseif eltype(T) isa Union
58
- # attempt to be slightly more specific by promoting unions
59
- TU = eltype(T)
60
- return promote_storagetype(TU.a, TU.b)
61
else
62
# fallback definition by using scalartype
63
return similarstoragetype(scalartype(T))
0 commit comments