Skip to content

Commit 61467ea

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

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/services/DFGFactor.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function _getPriorType(_type::Type{<:InferenceVariable})
5151
return getfield(_type.name.module, Symbol(:Prior, _type.name.name))
5252
end
5353

54-
5554
##==============================================================================
5655
## Default Factors Function Macro
5756
##==============================================================================
@@ -73,12 +72,12 @@ macro defFactorFunction(structname, factortype, manifold)
7372
packedstructname = Symbol("Packed", structname)
7473
return esc(
7574
quote
76-
Base.@__doc__ struct $structname{T} <: $factortype
75+
Base.@__doc__ struct $structname{T} <: $factortype
7776
Z::T
7877
end
7978

8079
# Base.@__doc__ struct $packedstructname{T<:PackedSamplableBelief} <: AbstractPackedFactor
81-
Base.@__doc__ struct $packedstructname{T} <: AbstractPackedFactor
80+
Base.@__doc__ struct $packedstructname{T} <: AbstractPackedFactor
8281
Z::T
8382
end
8483

@@ -91,7 +90,7 @@ macro defFactorFunction(structname, factortype, manifold)
9190

9291
DFG.getManifold(::Type{$structname}) = $manifold
9392
DFG.pack(d::$structname) = $packedstructname(packDistribution(d.Z))
94-
DFG.unpack(d::$packedstructname) = $structname(unpackDistribution(d.Z))
93+
DFG.unpack(d::$packedstructname) = $structname(unpackDistribution(d.Z))
9594
end,
9695
)
9796
end

0 commit comments

Comments
 (0)