Skip to content

Commit 692e449

Browse files
committed
chore: address review comments
1 parent c8114fd commit 692e449

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ export class KubeConfig implements SecurityAuthentication {
545545
} else {
546546
throw new Error('Unsupported proxy type');
547547
}
548-
} else if (cluster && cluster.server && cluster.server.startsWith('http:')) {
548+
} else if (cluster?.server?.startsWith('http:')) {
549549
agent = new http.Agent(agentOptions);
550550
} else {
551551
agent = new https.Agent(agentOptions);

src/config_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('KubeConfig', () => {
299299
});
300300
});
301301

302-
describe.only('applyHTTPSOptions', () => {
302+
describe('applyHTTPSOptions', () => {
303303
it('should apply tls-server-name to https.RequestOptions', async () => {
304304
const kc = new KubeConfig();
305305
kc.loadFromFile(kcTlsServerNameFileName);

0 commit comments

Comments
 (0)