Skip to content

Commit bd1dabd

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 63867ad commit bd1dabd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/services/DFGVariable.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,10 @@ function mergeVariableState!(v::VariableCompute, vnd::VariableState)
733733
return 1
734734
end
735735

736-
function mergeVariableStates!(dfg::AbstractDFG, varLabel_state_pairs::Vector{Pair{Symbol, VariableState}})
736+
function mergeVariableStates!(
737+
dfg::AbstractDFG,
738+
varLabel_state_pairs::Vector{Pair{Symbol, VariableState}},
739+
)
737740
cnt = asyncmap(varLabel_state_pairs) do (varLabel, state)
738741
return mergeVariableState!(dfg, varLabel, state)
739742
end

test/testBlocks.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,6 @@ function VSDTestBlock!(fg, v1)
793793

794794
# Bulk copy update x0
795795
@test DFG.mergeVariableStates!(fg, Vector{Pair{Symbol, VariableState}}([:a=>vnd])) == 1
796-
797796
altVnd = vnd |> deepcopy
798797
keepVnd = getVariableState(getVariable(fg, :a), :parametric) |> deepcopy
799798
altVnd.infoPerCoord .= [-99.0;]

0 commit comments

Comments
 (0)