Closed csjx closed 4 years ago
Discussing this, usage was confusing because of the usages collection, so rename this totalUsage.
usage
usages
totalUsage
Also, when refactoring Quota.getUsage() to Quota.getTotalUsage(), initialize the result to 0 and if there is a null result, return 0 instead. This makes downstream processing easier.
Quota.getUsage()
Quota.getTotalUsage()
0
null
Fixed in commits:
Discussing this,
usage
was confusing because of theusages
collection, so rename thistotalUsage
.