fixed more lint issues
This commit is contained in:
parent
43f4429998
commit
5436509ed6
7 changed files with 15 additions and 16 deletions
4
libs/cache/src/connection-manager.ts
vendored
4
libs/cache/src/connection-manager.ts
vendored
|
|
@ -172,7 +172,7 @@ export class RedisConnectionManager {
|
|||
try {
|
||||
await connection.ping();
|
||||
details[`shared:${name}`] = true;
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
details[`shared:${name}`] = false;
|
||||
allHealthy = false;
|
||||
}
|
||||
|
|
@ -183,7 +183,7 @@ export class RedisConnectionManager {
|
|||
try {
|
||||
await connection.ping();
|
||||
details[`unique:${name}`] = true;
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
details[`unique:${name}`] = false;
|
||||
allHealthy = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export class EnvLoader implements ConfigLoader {
|
|||
const path = key.toLowerCase().split('_');
|
||||
this.setNestedValue(config, path, parsedValue);
|
||||
}
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Skip environment variables that can't be set (readonly properties)
|
||||
// This is expected behavior for system environment variables
|
||||
}
|
||||
|
|
@ -96,7 +96,7 @@ export class EnvLoader implements ConfigLoader {
|
|||
|
||||
target[lastKey] = value;
|
||||
return true;
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// If we can't assign to any property (readonly), skip this env var silently
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export class MockServer {
|
|||
/**
|
||||
* Handle errors
|
||||
*/
|
||||
private handleError(error: Error): Response {
|
||||
private handleError(_error: Error): Response {
|
||||
return new Response('Server error', { status: 500 });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
* Provides utilities and mocks for testing logging operations.
|
||||
*/
|
||||
|
||||
import { afterAll, afterEach, beforeAll, beforeEach } from 'bun:test';
|
||||
import { Logger, LogMetadata, shutdownLoggers } from '../src';
|
||||
import { afterAll, afterEach, beforeAll } from 'bun:test';
|
||||
import { shutdownLoggers } from '../src';
|
||||
|
||||
// Store original console methods
|
||||
const originalConsole = {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* without requiring an actual QuestDB instance.
|
||||
*/
|
||||
|
||||
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test';
|
||||
import { afterEach, describe, expect, it } from 'bun:test';
|
||||
import {
|
||||
createQuestDBClient,
|
||||
QuestDBClient,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue