Skip to content

Commit 24541e9

Browse files
committed
feat: remove unused vars
1 parent 10a4b93 commit 24541e9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

api/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { setupLogRotation } from '@app/core/logrotate/setup-logrotate';
1717
import { fileExistsSync } from '@app/core/utils/files/file-exists';
1818
import { environment, PORT } from '@app/environment';
1919
import * as envVars from '@app/environment';
20-
import { PingTimeoutJobs } from '@app/mothership/jobs/ping-timeout-jobs';
20+
import { createLocalApiKeyForConnectIfNecessary } from '@app/mothership/utils/create-local-connect-api-key';
2121
import { store } from '@app/store';
2222
import { loadDynamixConfigFile } from '@app/store/actions/load-dynamix-config-file';
2323
import { shutdownApiEvent } from '@app/store/actions/shutdown-api-event';
@@ -31,7 +31,6 @@ import { setupRegistrationKeyWatch } from '@app/store/watch/registration-watch';
3131
import { StateManager } from '@app/store/watch/state-watch';
3232
import { setupVarRunWatch } from '@app/store/watch/var-run-watch';
3333
import { bootstrapNestServer } from '@app/unraid-api/main';
34-
import { createLocalApiKeyForConnectIfNecessary } from '@app/mothership/utils/create-local-connect-api-key';
3534

3635
import { setupNewMothershipSubscription } from './mothership/subscribe-to-mothership';
3736

api/src/unraid-api/cli/logs.command.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export class LogsCommand extends CommandRunner {
2020
return isNaN(parseInt(input)) ? 100 : parseInt(input)
2121
}
2222

23-
async run(passedParams: string[], options?: LogsOptions): Promise<void> {
23+
async run(_: string[], options?: LogsOptions): Promise<void> {
2424
const lines = options?.lines ?? 100;
2525
const subprocess = execa(PM2_PATH, ['logs', ECOSYSTEM_PATH, '--lines', lines.toString()]);
26-
2726
subprocess.stdout?.on('data', (data) => {
2827
this.logger.log(data.toString());
2928
});

0 commit comments

Comments
 (0)