Skip to content

Commit ebc3cc8

Browse files
committed
refactor(@angular/build): remove redundant ESLint disabling comments
Remove comments
1 parent aab4248 commit ebc3cc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/angular/build/src/builders/dev-server/vite-server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,15 +796,14 @@ export async function setupServer(
796796

797797
if (serverOptions.ssl) {
798798
if (serverOptions.sslCert && serverOptions.sslKey) {
799+
configuration.server ??= {};
799800
// server configuration is defined above
800-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
801-
configuration.server!.https = {
801+
configuration.server.https = {
802802
cert: await readFile(serverOptions.sslCert),
803803
key: await readFile(serverOptions.sslKey),
804804
};
805805
} else {
806806
const { default: basicSslPlugin } = await import('@vitejs/plugin-basic-ssl');
807-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
808807
configuration.plugins ??= [];
809808
configuration.plugins.push(basicSslPlugin());
810809
}

0 commit comments

Comments
 (0)