Skip to content

Commit 7fedea6

Browse files
committed
Remove broken branch.
1 parent 4126cd1 commit 7fedea6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/broadcast.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ static_check_broadcast_shape(::Tuple{}, ::Tuple{}) = ()
6161
flat = Broadcast.flatten(B); as = flat.args; f = flat.f
6262
argsizes = broadcast_sizes(as...)
6363
ax = axes(B)
64-
if ax isa Tuple{Vararg{SOneTo}}
65-
return _broadcast(f, Size(map(length, ax)), argsizes, as...)
66-
end
67-
return copy(convert(Broadcasted{DefaultArrayStyle{M}}, B))
64+
ax isa Tuple{Vararg{SOneTo}} || error("Dimension is not static. Please file a bug.")
65+
return _broadcast(f, Size(map(length, ax)), argsizes, as...)
6866
end
6967
# copyto! overloads
7068
@inline Base.copyto!(dest, B::Broadcasted{<:StaticArrayStyle}) = _copyto!(dest, B)

0 commit comments

Comments
 (0)