Skip to content

Commit 9792ed3

Browse files
committed
rather use keyword arguments
1 parent 1d12804 commit 9792ed3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/LightGraphsDFG/entities/LightGraphsDFG.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ mutable struct LightGraphsDFG{T <: AbstractParams} <: AbstractDFG
2525
end
2626

2727
#TODO? do we not want props such as userId, robotId, sessionId, etc...
28-
function LightGraphsDFG{T}(g::LFGType=MetaGraph(),
29-
d::String="LightGraphs.jl implementation",
28+
function LightGraphsDFG{T}(g::LFGType=MetaGraph();
29+
description::String="LightGraphs.jl implementation",
3030
userId::String="User ID",
3131
robotId::String="Robot ID",
32-
sessionId::String="Session ID";
32+
sessionId::String="Session ID",
3333
params::T=NoSolverParams()) where T <: AbstractParams
34-
set_prop!(g, :description, d)
34+
set_prop!(g, :description, description)
3535
set_prop!(g, :userId, userId)
3636
set_prop!(g, :robotId, robotId)
3737
set_prop!(g, :sessionId, sessionId)
3838
set_indexing_prop!(g, :label)
39-
LightGraphsDFG{T}(g, d, userId, robotId, sessionId, Symbol[], params)
39+
LightGraphsDFG{T}(g, description, userId, robotId, sessionId, Symbol[], params)
4040
end
4141

4242
Base.propertynames(x::LightGraphsDFG, private::Bool=false) =

0 commit comments

Comments
 (0)