File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class Logger implements LoggerService {
8484 isTimeDiffEnabled ?: boolean ,
8585 ) {
8686 if ( Logger . contextEnvironment === NestEnvironment . TEST ) {
87- return void 0 ;
87+ return ;
8888 }
8989 const output =
9090 message && isObject ( message ) ? JSON . stringify ( message , null , 2 ) : message ;
@@ -110,7 +110,7 @@ export class Logger implements LoggerService {
110110
111111 private static printStackTrace ( trace : string ) {
112112 if ( this . contextEnvironment === NestEnvironment . TEST || ! trace ) {
113- return void 0 ;
113+ return ;
114114 }
115115 process . stdout . write ( trace ) ;
116116 process . stdout . write ( `\n` ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class ExceptionsHandler extends BaseExceptionFilter {
1414
1515 public next ( exception : Error | HttpException | any , ctx : ArgumentsHost ) {
1616 if ( this . invokeCustomFilters ( exception , ctx ) ) {
17- return void 0 ;
17+ return ;
1818 }
1919 super . catch ( exception , ctx ) ;
2020 }
@@ -29,7 +29,7 @@ export class ExceptionsHandler extends BaseExceptionFilter {
2929 public invokeCustomFilters ( exception , response ) : boolean {
3030 if ( isEmpty ( this . filters ) ) return false ;
3131
32- const filter = this . filters . find ( ( { exceptionMetatypes, func } ) => {
32+ const filter = this . filters . find ( ( { exceptionMetatypes } ) => {
3333 const hasMetatype =
3434 ! exceptionMetatypes . length ||
3535 exceptionMetatypes . some (
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class Injector {
133133 throw new RuntimeException ( ) ;
134134 }
135135 if ( targetMetatype . isResolved ) {
136- return void 0 ;
136+ return ;
137137 }
138138 await this . resolveConstructorParams < T > (
139139 wrapper ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export abstract class ModuleRef {
4545
4646 private initFlattenModule ( ) {
4747 if ( this . flattenModuleFixture ) {
48- return void 0 ;
48+ return ;
4949 }
5050 const modules = this . container . getModules ( ) ;
5151 const initialValue = {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class WsExceptionsHandler extends BaseWsExceptionFilter {
1111 public handle ( exception : Error | WsException | any , host : ArgumentsHost ) {
1212 const client = host . switchToWs ( ) . getClient ( ) ;
1313 if ( this . invokeCustomFilters ( exception , host ) || ! client . emit ) {
14- return void 0 ;
14+ return ;
1515 }
1616 super . catch ( exception , host ) ;
1717 }
@@ -26,7 +26,7 @@ export class WsExceptionsHandler extends BaseWsExceptionFilter {
2626 public invokeCustomFilters ( exception , args : ArgumentsHost ) : boolean {
2727 if ( isEmpty ( this . filters ) ) return false ;
2828
29- const filter = this . filters . find ( ( { exceptionMetatypes, func } ) => {
29+ const filter = this . filters . find ( ( { exceptionMetatypes } ) => {
3030 const hasMetatype =
3131 ! exceptionMetatypes . length ||
3232 exceptionMetatypes . some (
You can’t perform that action at this time.
0 commit comments