File tree 1 file changed +1
-9
lines changed
packages/idempotency/src/persistence
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
26
26
private validationKeyJmesPath ?: string ;
27
27
28
28
public constructor ( ) {
29
- this . setEnvVarsService ( ) ;
29
+ this . envVarsService = new EnvironmentVariablesService ( ) ;
30
30
this . idempotencyKeyPrefix = this . getEnvVarsService ( ) . getFunctionName ( ) ;
31
31
}
32
32
@@ -223,14 +223,6 @@ abstract class BasePersistenceLayer implements BasePersistenceLayerInterface {
223
223
return ! data ;
224
224
}
225
225
226
- /**
227
- * Setter and initializer for `envVarsService`.
228
- * Used internally during initialization.
229
- */
230
- private setEnvVarsService ( ) : void {
231
- this . envVarsService = new EnvironmentVariablesService ( ) ;
232
- }
233
-
234
226
private validatePayload ( data : Record < string , unknown > , record : IdempotencyRecord ) : void {
235
227
if ( this . payloadValidationEnabled ) {
236
228
const hashedPayload : string = this . getHashedPayload ( data ) ;
You can’t perform that action at this time.
0 commit comments