GladysProject/Gladys

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

Summary

Maintainability
B
4 hrs
Test Coverage

Function backup has 109 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function backup(jobId) {
  try {
    const encryptKey = await this.variable.getValue('GLADYS_GATEWAY_BACKUP_KEY');
    if (encryptKey === null) {
      throw new NotFoundError('GLADYS_GATEWAY_BACKUP_KEY_NOT_FOUND');
Severity: Major
Found in server/lib/gateway/gateway.backup.js - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status