Skip to content

Commit 4849584

Browse files
committed
code style suggestion
1 parent c2750a7 commit 4849584

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/implementations/power.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ function power!(A::AbstractMatrix, p::Real, powA, alg::MatrixFunctionViaLA)
3333
atol = defaulttol(powA) * norm(powAc, Inf)
3434
all(x -> abs(imag(x)) <= atol, powAc) || throw(_realness_domainerror(power!))
3535
powA .= real.(powAc)
36-
return powA
36+
else
37+
copy!(powA, powAc)
3738
end
38-
copy!(powA, powAc)
3939
return powA
4040
end
4141

0 commit comments

Comments
 (0)