Skip to content

Commit

Permalink
refactor(@angular/build): remove redundant ESLint disabling comments
Browse files Browse the repository at this point in the history
Remove comments
  • Loading branch information
alan-agius4 committed Jan 8, 2025
1 parent aab4248 commit ebc3cc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular/build/src/builders/dev-server/vite-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,15 +796,14 @@ export async function setupServer(

if (serverOptions.ssl) {
if (serverOptions.sslCert && serverOptions.sslKey) {
configuration.server ??= {};
// server configuration is defined above
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
configuration.server!.https = {
configuration.server.https = {
cert: await readFile(serverOptions.sslCert),
key: await readFile(serverOptions.sslKey),
};
} else {
const { default: basicSslPlugin } = await import('@vitejs/plugin-basic-ssl');
// eslint-disable-next-line @typescript-eslint/no-floating-promises
configuration.plugins ??= [];
configuration.plugins.push(basicSslPlugin());
}
Expand Down

0 comments on commit ebc3cc8

Please sign in to comment.