Skip to content

Commit acf2daf

Browse files
committed
if -> elseif
1 parent e4cecda commit acf2daf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/planar/planaroperations.jl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ function planar_contract_indices(
271271
# if all indices are contracted, fix the residual rotation using the other tensor
272272
if isempty(oindA′) && !isempty(cindA)
273273
cindA′ = _rotate_to(cindA′, cindA[something(findfirst(==(first(cindB′)), cindB))])
274-
end
275-
if isempty(oindB′) && !isempty(cindB)
274+
elseif isempty(oindB′) && !isempty(cindB)
276275
cindB′ = _rotate_to(cindB′, cindB[something(findfirst(==(first(cindA′)), cindA))])
277276
end
278277
TupleTools.sort(tuple.(cindA′, cindB′)) == TupleTools.sort(tuple.(cindA, cindB)) ||

0 commit comments

Comments
 (0)