Merge pull request #17654 from Homebrew/context-restore-fix
This commit is contained in:
commit
e12d25dc5c
@ -63,7 +63,7 @@ module Context
|
|||||||
end
|
end
|
||||||
|
|
||||||
def with_context(**options)
|
def with_context(**options)
|
||||||
old_context = Thread.current[:context]
|
old_context = Context.current
|
||||||
|
|
||||||
new_context = ContextStruct.new(
|
new_context = ContextStruct.new(
|
||||||
debug: options.fetch(:debug, old_context&.debug?),
|
debug: options.fetch(:debug, old_context&.debug?),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user