Skip to content

Commit 8b42908

Browse files
committed
Make actualSize function part of the public API
1 parent 50cb63f commit 8b42908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ async function overQuota (root, serverUri) {
298298
// costly operation, but neglible for the small quotas we currently
299299
// allow. If the quotas grow bigger, this will significantly reduce
300300
// write performance, and so it needs to be rewritten.
301-
var actualSize = await _asyncGetSize(root)
302-
return (actualSize > quota)
301+
var size = await actualSize(root)
302+
return (size > quota)
303303
}
304304

305-
function _asyncGetSize (root) {
305+
function actualSize (root) {
306306
return util.promisify(getSize)(root)
307307
}
308308

0 commit comments

Comments
 (0)