From c3d8cb684305ccdfaba36412eedeaf87a8c4ef40 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Fri, 27 Oct 2023 13:44:24 +0200 Subject: [PATCH] selector not bounds --- src/LookupArrays/selector.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LookupArrays/selector.jl b/src/LookupArrays/selector.jl index e9356728f..2440a1a6a 100644 --- a/src/LookupArrays/selector.jl +++ b/src/LookupArrays/selector.jl @@ -322,7 +322,7 @@ function contains(::Points, l::LookupArray, sel::Contains; kw...) end # Intervals ----------------------------------- function contains(sampling::Intervals, l::LookupArray, sel::Contains; err=_True()) - _locus_checkbounds(locus(l), l, sel) || return _boundserror_or_nothing(err, l, sel) + _locus_checkbounds(locus(l), l, sel) || return _selector_error_or_nothing(err, l, sel) contains(order(l), span(l), sampling, locus(l), l, sel; err) end # Regular Intervals --------------------------- @@ -392,8 +392,8 @@ function contains( return i end -_boundserror_or_nothing(err::_True, l, i) = throw(SelectorError(l, i)) -_boundserror_or_nothing(err::_False, l, i) = nothing +_selector_error_or_nothing(err::_True, l, i) = throw(SelectorError(l, i)) +_selector_error_or_nothing(err::_False, l, i) = nothing _notcontained_or_nothing(err::_True, selval) = _notcontainederror(selval) _notcontained_or_nothing(err::_False, selval) = nothing