Skip to content

Commit badca09

Browse files
kellertuerlkdvos
andauthored
Update src/stopping_criterion.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 3ce717f commit badca09

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/stopping_criterion.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,7 @@ end
280280
@inline _fast_any(f, tup::Tuple{}) = true
281281
@inline _fast_any(f, tup::Tuple{T}) where {T} = f(tup[1])
282282
@inline function _fast_any(f, tup::Tuple)
283-
if f(tup[1])
284-
return true
285-
else
286-
return _fast_any(f, tup[2:end])
287-
end
283+
f(first(tup[1])) || _fast_any(f, Base.tail(tup))
288284
end
289285

290286
function (scs::GroupStoppingCriterionState)(

0 commit comments

Comments
 (0)