Still got errors and warnings, mostly the same and easy to fix
diff --git a/src/utils/calculate.ts b/src/utils/calculate.ts
index 8badc58..9bdef3b 100644
--- a/src/utils/calculate.ts
+++ b/src/utils/calculate.ts
@@ -19,7 +19,7 @@
"autoModeratorDeleted",
"nucleusSettingsUpdated",
"ticketUpdate"
-]
+];
const tickets = [
"support",
@@ -28,7 +28,7 @@
"issue",
"suggestion",
"other"
-]
+];
const toHexInteger = (permissions, array?) => {
if (!array) {
@@ -36,29 +36,29 @@
}
let int = 0n;
- for(let perm of permissions) {
+ for(const perm of permissions) {
int += BigInt(2 ** array.indexOf(perm));
}
- return int.toString(16)
-}
+ return int.toString(16);
+};
const toHexArray = (permissionsHex, array?) => {
if (!array) {
array = logs;
}
- let permissions = [];
- let int = (BigInt("0x" + permissionsHex)).toString(2).split('').reverse();
- for (let index in int) {
+ const permissions = [];
+ const int = (BigInt("0x" + permissionsHex)).toString(2).split("").reverse();
+ for (const index in int) {
if (int[index] === "1" && array.length > index) {
permissions.push(array[index]);
}
}
return permissions;
-}
+};
export {
toHexInteger,
toHexArray,
tickets,
logs
-}
\ No newline at end of file
+};
\ No newline at end of file