Skip to content

Commit

Permalink
Update src/varinfo.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
torfjelde and github-actions[bot] authored Sep 6, 2023
1 parent 3b27435 commit ef67495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,9 @@ end
function nested_setindex_maybe!(vi::UntypedVarInfo, val, vn::VarName)
return _nested_setindex_maybe!(vi, getmetadata(vi, vn), val, vn)
end
function nested_setindex_maybe!(vi::VarInfo{<:NamedTuple{names}}, val, vn::VarName{sym}) where {names,sym}
function nested_setindex_maybe!(
vi::VarInfo{<:NamedTuple{names}}, val, vn::VarName{sym}
) where {names,sym}
return if sym in names
_nested_setindex_maybe!(vi, getmetadata(vi, vn), val, vn)
else
Expand Down

0 comments on commit ef67495

Please sign in to comment.