Skip to content

Commit 2bb14ee

Browse files
committed
formatter
1 parent b71e8ee commit 2bb14ee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/functions.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,9 @@ function VectorAffineFunction{T}(f::VectorOfVariables) where {T}
578578
return VectorAffineFunction(terms, constants)
579579
end
580580

581-
582-
function VectorAffineFunction(elements::Vector{ScalarAffineFunction{T}}) where {T}
581+
function VectorAffineFunction(
582+
elements::Vector{ScalarAffineFunction{T}},
583+
) where {T}
583584
terms = Vector{VectorAffineTerm{T}}()
584585
constants = Vector{T}()
585586
for (idx, saf) in enumerate(elements)

test/functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function test_functions_convert_ScalarQuadraticFunction()
130130
end
131131

132132
function test_vectoraffinefunction_creation()
133-
x = MOI.VariableIndex(1)
133+
x = MOI.VariableIndex(1)
134134
f = MOI.VectorAffineFunction([1.0 * x, 2.0 * x])
135135
@test f.constants == [0.0, 0.0]
136136
@test f.terms[1].scalar_term.coefficient == 1.0

0 commit comments

Comments
 (0)