Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Jan 14, 2025
1 parent 3c53b08 commit 55d8fdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4893,8 +4893,10 @@ async function checkAppSecrets(appName, appComponentSpecs, appOwner, registratio
let foundSecretsWithSameAppName = false;
let foundSecretsWithDifferentAppName = false;

// eslint-disable-next-line no-restricted-syntax
for (const app of results) {
if (app.version >= 7 && app.nodes.length > 0) {
// eslint-disable-next-line no-restricted-syntax
for (const component of app.compose) {
if (component.secrets && normalizeSecret(component.secrets) === appComponentSecrets) {
if (registration) {
Expand Down Expand Up @@ -4927,9 +4929,12 @@ async function checkAppSecrets(appName, appComponentSpecs, appOwner, registratio
log.info(`checkAppSecrets - permanentAppMessages found: ${permanentAppMessages.length}`);
const processedSecrets = new Set();

// eslint-disable-next-line no-restricted-syntax
for (const message of permanentAppMessages) {
// eslint-disable-next-line no-restricted-syntax
for (const component of message.appSpecifications.compose) {
const normalizedSecret = normalizeSecret(component.secrets || '');
// eslint-disable-next-line no-continue
if (processedSecrets.has(normalizedSecret)) continue;
processedSecrets.add(normalizedSecret);

Expand Down

0 comments on commit 55d8fdd

Please sign in to comment.