Update linting

This commit is contained in:
Zaid Humaimidi committed 2023-12-16 19:08:13 -08:00
1 parent 4f2dfb4f48
commit 0c9c027a77
112 files changed
+3781 -4125

No files matched your search

+3 -3
View File
@@ -43,7 +43,7 @@ function exitWorkerGracefully(): void {
}
function exitWorkerUngracefully(): void {
extensions.killAll().finally(() => {
void extensions.killAll().finally(() => {
process.exit(1);
});
}
@@ -117,7 +117,7 @@ if (!cluster.worker) {
});
process.on("SIGINT", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server
.stop(false)
.then(exitWorkerGracefully)
@@ -126,7 +126,7 @@ if (!cluster.worker) {
});
process.on("SIGTERM", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server
.stop(false)
.then(exitWorkerGracefully)
+2 -2
View File
@@ -41,12 +41,12 @@ function errorToFault(err: Error): Fault {
fault.detail["stack"] = err.stack;
// Trim the stack trace
const stackTrimIndex = fault.detail["stack"].match(
/\s+at\s[^\s]+\s\(.*genieacs-ext:.+\)/
/\s+at\s[^\s]+\s\(.*genieacs-ext:.+\)/,
);
if (stackTrimIndex) {
fault.detail["stack"] = fault.detail["stack"].slice(
0,
stackTrimIndex.index
stackTrimIndex.index,
);
}
}
+2 -2
View File
@@ -106,13 +106,13 @@ if (!cluster.worker) {
});
process.on("SIGINT", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});
process.on("SIGTERM", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});
+3 -3
View File
@@ -43,7 +43,7 @@ function exitWorkerGracefully(): void {
}
function exitWorkerUngracefully(): void {
extensions.killAll().finally(() => {
void extensions.killAll().finally(() => {
process.exit(1);
});
}
@@ -113,13 +113,13 @@ if (!cluster.worker) {
});
process.on("SIGINT", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});
process.on("SIGTERM", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});
+3 -3
View File
@@ -43,7 +43,7 @@ function exitWorkerGracefully(): void {
}
function exitWorkerUngracefully(): void {
extensions.killAll().finally(() => {
void extensions.killAll().finally(() => {
process.exit(1);
});
}
@@ -113,13 +113,13 @@ if (!cluster.worker) {
});
process.on("SIGINT", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});
process.on("SIGTERM", () => {
initPromise.finally(() => {
void initPromise.finally(() => {
server.stop().then(exitWorkerGracefully).catch(exitWorkerUngracefully);
});
});