Skip to content

Commit db08a60

Browse files
style(core): move protected dispose under public methods
1 parent e0c9985 commit db08a60

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/core/nest-application-context.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ export class NestApplicationContext implements INestApplicationContext {
104104
return this;
105105
}
106106

107-
protected async dispose(): Promise<void> {
108-
// Nest application context has no server
109-
// to dispose, therefore just call a noop
110-
return Promise.resolve();
111-
}
112-
113107
public async close(): Promise<void> {
114108
await this.callDestroyHook();
115109
await this.callBeforeShutdownHook();
@@ -155,6 +149,12 @@ export class NestApplicationContext implements INestApplicationContext {
155149
return this;
156150
}
157151

152+
protected async dispose(): Promise<void> {
153+
// Nest application context has no server
154+
// to dispose, therefore just call a noop
155+
return Promise.resolve();
156+
}
157+
158158
/**
159159
* Listens to shutdown signals by listening to
160160
* process events

0 commit comments

Comments
 (0)