Skip to content

Commit

Permalink
Only require ext/tracer when value is truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Feb 6, 2024
1 parent 3c1abdd commit fcc5767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def initialize(irb, workspace = nil, input_method = nil)
private_constant :KEYWORD_ALIASES

def use_tracer=(val)
require_relative "ext/tracer"
require_relative "ext/tracer" if val
@use_tracer = val
end

Expand Down

0 comments on commit fcc5767

Please sign in to comment.