Skip to content

Commit d66731f

Browse files
dreamorosiijemmy
andauthored
Update packages/idempotency/src/persistence/PersistenceLayer.ts
Co-authored-by: ijemmy <[email protected]>
1 parent d64cd95 commit d66731f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/idempotency/src/persistence/PersistenceLayer.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ abstract class PersistenceLayer implements PersistenceLayerInterface {
3434
* @param {PersistenceLayerConfigureOptions} options - configuration object for the persistence layer
3535
*/
3636
public configure(options?: PersistenceLayerConfigureOptions): void {
37-
if (options?.functionName && options.functionName.trim() !== '') this.idempotencyKeyPrefix = `${this.idempotencyKeyPrefix}.${options.functionName}`;
37+
if (options?.functionName && options.functionName.trim() !== '') {
38+
this.idempotencyKeyPrefix = `${this.idempotencyKeyPrefix}.${options.functionName}`;
39+
}
3840
}
3941

4042
/**

0 commit comments

Comments
 (0)