Skip to content

Commit 8af356d

Browse files
committed
fmt
1 parent e5bc0a0 commit 8af356d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/parametric_functions.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,10 @@ function _delta_parametric_constant(
239239
new_1 = ifelse(isnan_1, old_p1, new_p1)
240240
new_2 = ifelse(isnan_2, old_p2, new_p2)
241241
delta_constant +=
242-
(term.coefficient /
243-
ifelse(term.variable_1 == term.variable_2, 2, 1)) *
244-
(new_1 * new_2 - old_p1 * old_p2)
242+
(
243+
term.coefficient /
244+
ifelse(term.variable_1 == term.variable_2, 2, 1)
245+
) * (new_1 * new_2 - old_p1 * old_p2)
245246
end
246247
end
247248
return delta_constant
@@ -749,8 +750,7 @@ function _delta_parametric_constant(
749750
new_1 = isnan_1 ? old_p1 : new_p1
750751
new_2 = isnan_2 ? old_p2 : new_p2
751752
coef = term.scalar_term.coefficient / (var1 == var2 ? 2 : 1)
752-
delta_constants[idx] +=
753-
coef * (new_1 * new_2 - old_p1 * old_p2)
753+
delta_constants[idx] += coef * (new_1 * new_2 - old_p1 * old_p2)
754754
end
755755
end
756756

0 commit comments

Comments
 (0)