Skip to content

Commit 80c409b

Browse files
authored
Update format_check (#313)
* Update format_check * Fix format
1 parent 3c21287 commit 80c409b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/format_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
- uses: julia-actions/setup-julia@latest
1515
with:
1616
version: '1'
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Format check
1919
shell: julia --color=yes {0}
2020
run: |
2121
using Pkg
22-
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
22+
Pkg.add(PackageSpec(name="JuliaFormatter", version="2"))
2323
using JuliaFormatter
2424
format("src", verbose=true)
2525
format("test", verbose=true)

src/det.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ function LinearAlgebra.det(M::Matrix{<:AbstractPolynomialLike})
22
m = size(M)[1]
33
if m > 2
44
return sum(
5-
(-1)^(i - 1) * M[i, 1] * LinearAlgebra.det(M[1:end.!=i, 2:end]) for
6-
i in 1:m
5+
(-1)^(i - 1) * M[i, 1] * LinearAlgebra.det(M[1:end .!= i, 2:end])
6+
for i in 1:m
77
)
88
elseif m == 2
99
return M[1, 1] * M[2, 2] - M[2, 1] * M[1, 2]

0 commit comments

Comments
 (0)