Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderRonde committed Apr 28, 2024
1 parent 22b9a96 commit f41852a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"prefer-const": "warn",
"prefer-spread": "warn",
"prettier/prettier": "warn",
"node/no-extraneous-import": "off",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",
Expand All @@ -31,8 +32,8 @@
"@typescript-eslint/no-for-in-array": "warn",
"@typescript-eslint/no-implied-eval": ["warn"],
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-unused-expressions": ["warn"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unsafe-assignment": ["off"],
"@typescript-eslint/no-unsafe-call": ["off"],
"@typescript-eslint/no-unsafe-member-access": ["warn"],
Expand Down
Binary file modified bun.lockb
Binary file not shown.
9 changes: 6 additions & 3 deletions client/src/notificationReceivers/procSpawner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ProcessSpawner implements Disposable {
}
}

private async _killProc(pid: number, binStr?: string): Promise<void> {
private _killProc(pid: number, binStr?: string): void {
if (!this._procExists(pid)) {
return;
}
Expand All @@ -62,7 +62,7 @@ export class ProcessSpawner implements Disposable {
return;
}

list.forEach(async (proc) => {
list.forEach((proc) => {
if (binStr && proc.command !== binStr) {
return;
}
Expand All @@ -89,7 +89,10 @@ export class ProcessSpawner implements Disposable {
Object.entries(processes).forEach(([pid, data]) => {
const descriptor =
typeof data === 'number'
? { timeout: data, binStr: undefined }
? {
timeout: data,
binStr: undefined,
}
: data;
if (
Date.now() > descriptor.timeout &&
Expand Down

0 comments on commit f41852a

Please sign in to comment.