reorder functions for no-use-before-define
This commit is contained in:
@@ -13,9 +13,6 @@ import safe from 'safetydance';
|
||||
|
||||
const debug = debugModule('box:backupcleaner');
|
||||
|
||||
const _applyBackupRetention = applyBackupRetention;
|
||||
|
||||
|
||||
function applyBackupRetention(allBackups, retention, referencedBackupIds) {
|
||||
assert(Array.isArray(allBackups));
|
||||
assert.strictEqual(typeof retention, 'object');
|
||||
@@ -308,6 +305,8 @@ async function run(siteId, progressCallback) {
|
||||
return { removedBoxBackupPaths, removedMailBackupPaths, removedAppBackupPaths, missingBackupPaths };
|
||||
}
|
||||
|
||||
const _applyBackupRetention = applyBackupRetention;
|
||||
|
||||
export default {
|
||||
run,
|
||||
_applyBackupRetention,
|
||||
|
||||
Reference in New Issue
Block a user