Skip to content

Commit

Permalink
Removed extraneous error check
Browse files Browse the repository at this point in the history
  • Loading branch information
edwjames committed Apr 1, 2024
1 parent deeb5d6 commit 0084b12
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/polars-ops/src/chunked_array/array/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ use polars_core::utils::align_chunks_binary;
use super::*;

fn array_get_literal(ca: &ArrayChunked, idx: i64, null_on_oob: bool) -> PolarsResult<Series> {
if !null_on_oob
&& idx
.negative_to_usize(ca.downcast_iter().next().unwrap().len())
.is_none()
{
polars_bail!(ComputeError: "get index is out of bounds");
}
let chunks = ca
.downcast_iter()
.map(|arr| sub_fixed_size_list_get_literal(arr, idx, null_on_oob))
Expand Down

0 comments on commit 0084b12

Please sign in to comment.