Skip to content

Commit 0bc67af

Browse files
authored
JuliaFormatter: bump to v1.0.0 (#1862)
1 parent 54b76d5 commit 0bc67af

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.github/workflows/format_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
shell: julia --color=yes {0}
1919
run: |
2020
using Pkg
21-
Pkg.add(PackageSpec(name="JuliaFormatter", version="0.15.11"))
21+
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
2222
using JuliaFormatter
2323
format("src", verbose=true)
2424
format("test", verbose=true)

src/Bridges/Variable/map.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ function add_keys_for_bridge(
358358
end
359359
map.bridges[bridge_index] = call_in_context(map, bridge_index, bridge_fun)
360360
variables = MOI.VariableIndex[
361-
MOI.VariableIndex(-(bridge_index - 1 + i)) for
362-
i in 1:MOI.dimension(set)
361+
MOI.VariableIndex(-(bridge_index - 1 + i)) for i in 1:MOI.dimension(set)
363362
]
364363
if map.unbridged_function !== nothing
365364
mappings = unbridged_map(map.bridges[bridge_index], variables)

src/Utilities/functions.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,10 +3157,7 @@ function convert_approx(
31573157
i = findfirst(t -> isapprox(t.coefficient, one(T), atol = tol), f.terms)
31583158
if abs(f.constant) > tol ||
31593159
i === nothing ||
3160-
any(
3161-
j -> j != i && abs(f.terms[j].coefficient) > tol,
3162-
eachindex(f.terms),
3163-
)
3160+
any(j -> j != i && abs(f.terms[j].coefficient) > tol, eachindex(f.terms))
31643161
throw(InexactError(:convert_approx, MOI.VariableIndex, func))
31653162
end
31663163
return f.terms[i].variable

0 commit comments

Comments
 (0)