Skip to content

Commit a37a133

Browse files
committed
Another fix?
1 parent f23ce5c commit a37a133

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/tensors/braidingtensor.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,8 @@ function planarcontract!(
260260
backend, allocator
261261
)
262262
# special case only defined for contracting all 4 indices of B (2 contracted + 2 open)
263-
length.(pB) == (2, 2) ||
264-
planarcontract!(C, A, pA, TensorMap(B), pB, pAB, α, β, backend, allocator)
265-
263+
length.(pB) == (2, 2) &&
264+
return planarcontract!(C, A, pA, TensorMap(B), pB, pAB, α, β, backend, allocator)
266265

267266
spacecheck_contract(C, A, pA, false, B, pB, false, pAB)
268267

0 commit comments

Comments
 (0)