GladysProject/Gladys

View on GitHub
server/lib/gateway/gateway.downloadBackup.js

Summary

Maintainability
A
1 hr
Test Coverage

Function downloadBackup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
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');
  }
Severity: Minor
Found in server/lib/gateway/gateway.downloadBackup.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status