storage: make exists async
This commit is contained in:
@@ -49,14 +49,13 @@ function upload(apiConfig, backupFilePath, sourceStream, callback) {
|
||||
callback(null);
|
||||
}
|
||||
|
||||
function exists(apiConfig, backupFilePath, callback) {
|
||||
async function exists(apiConfig, backupFilePath) {
|
||||
assert.strictEqual(typeof apiConfig, 'object');
|
||||
assert.strictEqual(typeof backupFilePath, 'string');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
debug('exists: %s', backupFilePath);
|
||||
debug(`exists: ${backupFilePath}`);
|
||||
|
||||
callback(null, false);
|
||||
return false;
|
||||
}
|
||||
|
||||
function download(apiConfig, backupFilePath, callback) {
|
||||
|
||||
Reference in New Issue
Block a user