Skip to content

Commit

Permalink
Update base/scopedvalues.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Oct 7, 2024
1 parent 63ad813 commit a397a7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/scopedvalues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ struct Scope
values::ScopeStorage
end

function Scope(parent::Scope)
return Scope(parent.values)
end
Scope(scope::Scope) = scope

function Scope(parent::Union{Nothing, Scope}, key::ScopedValue{T}, value) where T
val = convert(T, value)
Expand Down

0 comments on commit a397a7c

Please sign in to comment.