Skip to content

Commit 4805984

Browse files
blegatmlubin
authored andcommitted
coalesce -> something (#381)
1 parent 60cec4e commit 4805984

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
julia 0.6
2-
Compat 0.59
2+
Compat 0.68

src/Utilities/functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ modifyfunction(f::MOI.VectorQuadraticFunction, change::MOI.VectorConstantChange)
309309

310310
function _modifycoefficient(terms::Vector{<:MOI.ScalarAffineTerm}, variable::MOI.VariableIndex, new_coefficient)
311311
terms = copy(terms)
312-
i = coalesce(findfirst(t -> _hasvar(t, variable), terms), 0)
312+
i = something(findfirst(t -> _hasvar(t, variable), terms), 0)
313313
if iszero(i)
314314
# The variable was not already in the function
315315
if !iszero(new_coefficient)

0 commit comments

Comments
 (0)