It's definitely not useless, as this is a global variable, updated after every purchase, but maybe it could be renamed more adequately.
I always suggest writing comments, because not writing them is actually inefficient, as other and new developers lack context.
The line of code also lacks info in the commit message that could explain the usage.
It's definitely not useless, as this is a global variable, updated after every purchase, but maybe it could be renamed more adequately. I always suggest writing comments, because not writing them is actually inefficient, as other and new developers lack context. The line of code also lacks info in the commit message that could explain the usage.