فهرست منبع

fix non-autofixable biome errors

Futa Arai 6 ماه پیش
والد
کامیت
80c1f00129
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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(':')
     .split(':')
     .map((x) => (x === ALL_SIGN ? 'ALL' : x.toUpperCase()));
     .map((x) => (x === ALL_SIGN ? 'ALL' : x.toUpperCase()));
   let obj: any = SCOPE;
   let obj: any = SCOPE;
-  scopeParts.forEach((part) => {
+  for (const part of scopeParts) {
     if (obj[part] == null) {
     if (obj[part] == null) {
       return false;
       return false;
     }
     }
     obj = obj[part];
     obj = obj[part];
-  });
+  }
   return obj === scope;
   return obj === scope;
 };
 };