Skip to content

Commit 2e4a8ce

Browse files
committed
update checks in hope of fixing type ambiguity
1 parent 8ac1e74 commit 2e4a8ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/spaces/homspace.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,10 @@ For this to work, that factor has to be isomorphic to the field of scalars.
217217
This operation undoes the work of [`insertleftunit`](@ref) or [`insertrightunit`](@ref).
218218
"""
219219
function removeunit(P::HomSpace, i::Int)
220-
if i in 1:numout(P)
220+
if i numout(P)
221221
return removeunit(codomain(P), i) domain(P)
222-
elseif i in (numout(P) + 1):numind(P)
223-
return codomain(P) removeunit(domain(P), i - numout(P))
224222
else
225-
throw(BoundsError(P, i))
223+
return codomain(P) removeunit(domain(P), i - numout(P))
226224
end
227225
end
228226

0 commit comments

Comments
 (0)