Skip to content

Commit

Permalink
simplify the previous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Jan 26, 2025
1 parent 2c5fe4c commit e2eb5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collect_as.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function collect_as(::Type{T}, iterator) where {T<:FixedSizeArray}
output_dimension_count = checked_dimension_count_of(T, size_class)
fsv = collect_as_fsv(mem, iterator)
if isone(output_dimension_count)
fsv # `size(iterator)` may throw in this branch so don't call it
fsv # `size(iterator)` may throw in this branch
else
reshape(fsv, size(iterator))
end::T
Expand Down

0 comments on commit e2eb5bb

Please sign in to comment.