Skip to content

Commit 7cc2111

Browse files
committed
refactor(logger): remove redundant constructor in config classes
1 parent bd13a28 commit 7cc2111

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/logger/examples/config/CustomConfigService.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ class CustomConfigService extends EnvironmentVariablesService {
55
// Custom environment variables
66
protected customEnvironmentVariable = 'CUSTOM_ENV';
77

8-
public constructor() {
9-
super();
10-
}
11-
128
public getCurrentEnvironment(): string {
139
return this.get(this.customEnvironmentVariable);
1410
}

packages/logger/src/config/EnvironmentVariablesService.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ class EnvironmentVariablesService extends ConfigService {
99
private memoryLimitInMBVariable = 'AWS_LAMBDA_FUNCTION_MEMORY_SIZE';
1010
private xRayTraceIdVariable = '_X_AMZN_TRACE_ID';
1111

12-
public constructor() {
13-
super();
14-
}
15-
1612
public get(name: string): string {
1713
return process.env[name] || '';
1814
}

0 commit comments

Comments
 (0)