deepeshmalviya/scribe — comment on commit 53f581a2ba945db087181114bb49f1f5cdaaae03
File:  line 0
By dionysusxie:

Please consider this situation:
After the switch(rollPeriod){ } is evaluated,
the variable "rotate" is set false -- which means it is NOT the time to rotate file,
and "rotateIfData" is set true, the code below
" rotate = rotateIfData ? (currentSize > 0) : rotate; "
will force "rotate" to be set true.