Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
avik-pal and github-actions[bot] authored Nov 9, 2024
1 parent b695383 commit 920bc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TracedRArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Base.getindex(a::TracedRArray{T,N}, indices::Vararg{Any,N}) where {T,N}
end

foreach(indices) do idxs
idxs isa Number && return
idxs isa Number && return nothing
all(isone, diff(idxs)) || error("non-contiguous indexing is not supported")
end

Expand Down

0 comments on commit 920bc3c

Please sign in to comment.