Skip to content

Commit e9433d0

Browse files
Merge branch 'master' of https://github.com/nestjs/nest
2 parents 13d473f + a78a31e commit e9433d0

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/common/services/logger.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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`);

packages/core/exceptions/exceptions-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

packages/core/injector/injector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

packages/core/injector/module-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = {

packages/websockets/exceptions/ws-exceptions-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)