Skip to content

Commit 0fdced9

Browse files
committed
Add a comment to explain why we have duplicated code
Issue: S3UTILS-170
1 parent cb70e9b commit 0fdced9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/S3UtilsMongoClient.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ class S3UtilsMongoClient extends MongoClientInterface {
734734
}
735735
const accountLocation = dataMetrics.account[account].locations[location];
736736
if (!accountLocation.usedCapacity) {
737+
// the capacities are created inline to avoid runtime
738+
// deep copy of the baseMetricsObject
737739
accountLocation.usedCapacity = {
738740
current: 0n,
739741
nonCurrent: 0n,

0 commit comments

Comments
 (0)