Merge pull request #17654 from Homebrew/context-restore-fix

This commit is contained in:
Mike McQuaid 2024-07-08 19:15:16 +01:00 committed by GitHub
commit e12d25dc5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ module Context
end
def with_context(**options)
old_context = Thread.current[:context]
old_context = Context.current
new_context = ContextStruct.new(
debug: options.fetch(:debug, old_context&.debug?),