Skip to content

Commit b99e039

Browse files
committed
Fix format
1 parent 10f7ed1 commit b99e039

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Bridges/Bridges.jl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ MOI.get_fallback(model::MOI.ModelLike, ::ListOfNonstandardBridges) = Type[]
144144

145145
include("precompile.jl")
146146

147-
function _test_structural_identical(a::MOI.ModelLike, b::MOI.ModelLike; allow_constraint_function_error::Bool = false)
147+
function _test_structural_identical(
148+
a::MOI.ModelLike,
149+
b::MOI.ModelLike;
150+
allow_constraint_function_error::Bool = false,
151+
)
148152
# Test that the variables are the same. We make the strong assumption that
149153
# the variables are added in the same order to both models.
150154
a_x = MOI.get(a, MOI.ListOfVariableIndices())
@@ -193,7 +197,8 @@ function _test_structural_identical(a::MOI.ModelLike, b::MOI.ModelLike; allow_co
193197
try
194198
f_b = MOI.get(b, MOI.ConstraintFunction(), ci)
195199
catch err
196-
if allow_constraint_function_error && err isa MOI.GetAttributeNotAllowed{MOI.ConstraintFunction}
200+
if allow_constraint_function_error &&
201+
err isa MOI.GetAttributeNotAllowed{MOI.ConstraintFunction}
197202
continue
198203
else
199204
rethrow(err)
@@ -276,7 +281,11 @@ function runtests(
276281
# Load a non-bridged input model, and check that getters are the same.
277282
test = MOI.Utilities.UniversalFallback(MOI.Utilities.Model{eltype}())
278283
input_fn(test)
279-
_test_structural_identical(test, model; allow_constraint_function_error = allow_outer_constraint_function_error)
284+
_test_structural_identical(
285+
test,
286+
model;
287+
allow_constraint_function_error = allow_outer_constraint_function_error,
288+
)
280289
# Load a bridged target model, and check that getters are the same.
281290
target = MOI.Utilities.UniversalFallback(MOI.Utilities.Model{eltype}())
282291
output_fn(target)

0 commit comments

Comments
 (0)