rename to checkBackupPreconditions
since this is called only by the backup logic
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
// them to tune the concurrency based on failures/rate limits accordingly
|
||||
exports = module.exports = {
|
||||
getRootPath,
|
||||
checkPreconditions,
|
||||
checkBackupPreconditions,
|
||||
|
||||
upload,
|
||||
|
||||
@@ -54,7 +54,7 @@ function getRootPath(apiConfig) {
|
||||
return '/';
|
||||
}
|
||||
|
||||
async function checkPreconditions(apiConfig, dataLayout) {
|
||||
async function checkBackupPreconditions(apiConfig, dataLayout) {
|
||||
assert.strictEqual(typeof apiConfig, 'object');
|
||||
assert(dataLayout instanceof DataLayout, 'dataLayout must be a DataLayout');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user