Skip to content

Commit d834d78

Browse files
authored
Move Union check out
1 parent b1b36a4 commit d834d78

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/tensors/abstracttensor.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ function storagetype(::Type{T}) where {T <: AbstractTensorMap}
5454
if T isa Union
5555
# attempt to be slightly more specific by promoting unions
5656
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)
6157
else
6258
# fallback definition by using scalartype
6359
return similarstoragetype(scalartype(T))

0 commit comments

Comments
 (0)