Skip to content

Commit f83129e

Browse files
committed
chore: removed conditional check in DynamoDBPersistenceLayer config
1 parent 1c4a0cb commit f83129e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DynamoDBPersistenceLayer extends BasePersistenceLayer {
4646
this.inProgressExpiryAttr = config.inProgressExpiryAttr ?? 'in_progress_expiry_attr';
4747
this.dataAttr = config.dataAttr ?? 'data';
4848
this.validationKeyAttr = config.validationKeyAttr ?? 'validation';
49-
if (config?.sortKeyAttr === this.keyAttr) {
49+
if (config.sortKeyAttr === this.keyAttr) {
5050
throw new Error(
5151
`keyAttr [${this.keyAttr}] and sortKeyAttr [${config.sortKeyAttr}] cannot be the same!`
5252
);

0 commit comments

Comments
 (0)