server/lib/gateway/gateway.downloadBackup.js
Function downloadBackup
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function downloadBackup(fileUrl) {
const encryptKey = await this.variable.getValue('GLADYS_GATEWAY_BACKUP_KEY');
if (encryptKey === null) {
throw new NotFoundError('GLADYS_GATEWAY_BACKUP_KEY_NOT_FOUND');
}