Explorar el Código

fix non-autofixable biome errors

Futa Arai hace 5 meses
padre
commit
80c1f00129
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      apps/app/src/server/util/scope-utils.ts

+ 2 - 2
apps/app/src/server/util/scope-utils.ts

@@ -10,12 +10,12 @@ export const isValidScope = (scope: Scope): boolean => {
     .split(':')
     .map((x) => (x === ALL_SIGN ? 'ALL' : x.toUpperCase()));
   let obj: any = SCOPE;
-  scopeParts.forEach((part) => {
+  for (const part of scopeParts) {
     if (obj[part] == null) {
       return false;
     }
     obj = obj[part];
-  });
+  }
   return obj === scope;
 };