Skip to content

Commit

Permalink
only remove @debug_enabled if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jun 12, 2019
1 parent 6d62ba1 commit 6226565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def enable_debug!
end

def disable_debug!
remove_instance_variable :@debug_enabled
remove_instance_variable :@debug_enabled if defined? @debug_enabled
end

def debug_enabled?
Expand Down

0 comments on commit 6226565

Please sign in to comment.