Skip to content

Commit 58c8195

Browse files
committed
minor syntax update
1 parent f7ffec0 commit 58c8195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NeedsAHome.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ end
1515
1616
Return `::Bool` on whether `dfg` contains the variable `lbl::Symbol`.
1717
"""
18-
function hasVariable(dfg::G, lbl::Symbol)::Bool where {G <: AbstractDFG}
19-
haskey(dfg.labelDict, label) # haskey(vertices(dfg.g), lbl)
18+
function hasVariable(dfg::G, label::Symbol)::Bool where {G <: AbstractDFG}
19+
return haskey(dfg.labelDict, label) # haskey(vertices(dfg.g), label)
2020
end

0 commit comments

Comments
 (0)