Skip to content

Commit 6791b6c

Browse files
style: address lint errors
1 parent 20d86f3 commit 6791b6c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/nest-application.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class NestApplication
274274
}
275275

276276
public enableCors(options?: any): void {
277-
this.httpAdapter.enableCors(options!);
277+
this.httpAdapter.enableCors(options);
278278
}
279279

280280
public enableVersioning(

packages/platform-fastify/adapters/fastify-adapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-floating-promises */
12
import { FastifyCorsOptions } from '@fastify/cors';
23
import {
34
HttpStatus,

0 commit comments

Comments
 (0)