rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
845 stars 115 forks source link

Don't leak a global variable #249

Open etiennebarrie opened 4 years ago

etiennebarrie commented 4 years ago

While debugging in a pry console, I noticed there was a $DEBUG_BEFORE global variable and I tracked it down to here.

It's not necessary to use a global variable to store the previous value of $DEBUG. Since it's in the same scope, a local variable is enough.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 88132768 and detected 0 issues on this pull request.

View more on Code Climate.