From 47a97cdf2db41473e639664fe2b822634957e896 Mon Sep 17 00:00:00 2001 From: Ben Corbett Date: Tue, 21 May 2024 16:15:25 -0600 Subject: [PATCH] Squash --- src/indexset.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/indexset.jl b/src/indexset.jl index 2fd35e38e0..ec52c39d65 100644 --- a/src/indexset.jl +++ b/src/indexset.jl @@ -614,7 +614,9 @@ function replaceinds(is::Indices, inds1, inds2; ignoreSpaceError::Bool=false) return (is_tuple) end -replaceind(is::Indices, i1::Index, i2::Index; ignoreSpaceError::Bool=false) = replaceinds(is, (i1,), (i2,); ignoreSpaceError) +function replaceind(is::Indices, i1::Index, i2::Index; ignoreSpaceError::Bool=false) + return replaceinds(is, (i1,), (i2,); ignoreSpaceError) +end function replaceind(is::Indices, i1::Index, i2::Indices) length(i2) != 1 &&