Open etiennebarrie opened 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.
$DEBUG_BEFORE
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.
$DEBUG
Code Climate has analyzed commit 88132768 and detected 0 issues on this pull request.
View more on Code Climate.
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.