Skip to content

Commit 81001c8

Browse files
committed
fix: prettier error
1 parent 4c07bda commit 81001c8

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

api/src/__tests__/integration.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,13 @@ describe('API Integration Tests', () => {
152152
// Re-require app or mock config if necessary, but here we try setting env
153153
// Note: This test might require the app to be re-initialized if config is static
154154
// For this specific codebase, let's see if we can trigger it.
155-
155+
156156
// Since we can't easily re-initialize 'app' without side effects in this test file,
157157
// we'll focus on verifying the HSTS header which is always active now.
158158
// To fully test redirection, we'd ideally have a way to inject config.
159-
160-
const response = await request(app)
161-
.get('/api/health')
162-
.set('x-forwarded-proto', 'http');
163-
159+
160+
const response = await request(app).get('/api/health').set('x-forwarded-proto', 'http');
161+
164162
// In development (default), it should NOT redirect
165163
expect(response.status).toBe(200);
166164
});

oracle/src/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export function maskSecret(key: string): string {
184184
* Returns a safe (redacted) version of the config for logging.
185185
* Strips adminSecretKey entirely.
186186
*/
187-
export function getSafeConfig(config: OracleServiceConfig): Omit<OracleServiceConfig, 'adminSecretKey'> & { adminSecretKey: string } {
187+
export function getSafeConfig(
188+
config: OracleServiceConfig
189+
): Omit<OracleServiceConfig, 'adminSecretKey'> & { adminSecretKey: string } {
188190
return {
189191
...config,
190192
adminSecretKey: maskSecret(config.adminSecretKey),

0 commit comments

Comments
 (0)