Skip to content

Commit d2667ce

Browse files
committed
fix formatting
1 parent 844ef92 commit d2667ce

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

src/Common.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,16 @@ end
188188
calcDeltatime(from_node, to_node) = calcDeltatime(from_node.timestamp, to_node.timestamp)
189189

190190
Timestamp(args...) = TimeDateZone(args...)
191-
Timestamp(epoch::Val{:unix}, t::Nanosecond, zone = tz"UTC") = TimeDateZone(TimeDate(1970) + t, zone)
192-
Timestamp(epoch::Val{:unix}, t::Float64, zone = tz"UTC") = Timestamp(epoch, Nanosecond(t * 10^9), zone)
191+
function Timestamp(epoch::Val{:unix}, t::Nanosecond, zone = tz"UTC")
192+
return TimeDateZone(TimeDate(1970) + t, zone)
193+
end
194+
function Timestamp(epoch::Val{:unix}, t::Float64, zone = tz"UTC")
195+
return Timestamp(epoch, Nanosecond(t * 10^9), zone)
196+
end
193197
Timestamp(t::Float64, zone = tz"UTC") = Timestamp(Val(:unix), t, zone)
194-
Timestamp(epoch::Val{:rata}, t::Float64, zone = tz"UTC") = TimeDateZone(convert(DateTime,Millisecond(t*10^3)), zone)
198+
function Timestamp(epoch::Val{:rata}, t::Float64, zone = tz"UTC")
199+
return TimeDateZone(convert(DateTime, Millisecond(t*10^3)), zone)
200+
end
195201

196202
function now_tdz(zone = tz"UTC")
197203
t = time()

src/Deprecated.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,7 @@ function getBlobentries(dfg::AbstractDFG, label::Symbol, regex::Regex)
591591
return entries = getBlobentries(dfg, label; labelFilter = contains(regex))
592592
end
593593

594-
function getBlobentries(
595-
dfg::AbstractDFG,
596-
label::Symbol,
597-
skey::AbstractString,
598-
)
594+
function getBlobentries(dfg::AbstractDFG, label::Symbol, skey::AbstractString)
599595
Base.depwarn(
600596
"getBlobentries(dfg, label, regex::AbstractString) is deprecated, use getBlobentries(dfg, label; labelFilter=contains(regex)) instead.",
601597
:getBlobentries,

src/serialization/PackedSerialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ See also: [`Packed`](@ref), [`pack`](@ref), [`unpack`](@ref), [`resolvePackedTyp
118118
"""
119119
macro packed()
120120
return esc(:(lower = DFG.Packed, choosetype = DFG.resolvePackedType))
121-
end
121+
end

src/services/AbstractDFG.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,12 @@ function deepcopyGraph(
559559
graphLabel::Symbol = Symbol(getGraphLabel(sourceDFG), "_cp_$(string(uuid4())[1:6])"),
560560
kwargs...,
561561
) where {T <: AbstractDFG}
562-
destDFG = T(; solverParams = getSolverParams(sourceDFG), graph = sourceDFG.graph, agent = sourceDFG.agent, graphLabel)
562+
destDFG = T(;
563+
solverParams = getSolverParams(sourceDFG),
564+
graph = sourceDFG.graph,
565+
agent = sourceDFG.agent,
566+
graphLabel,
567+
)
563568
copyGraph!(
564569
destDFG,
565570
sourceDFG,

0 commit comments

Comments
 (0)