diff --git a/src/transforms/v2-to-v3/utils/getClientNewExpressionFromLocalName.ts b/src/transforms/v2-to-v3/utils/getClientNewExpressionFromLocalName.ts index d78be544f..7175d2921 100644 --- a/src/transforms/v2-to-v3/utils/getClientNewExpressionFromLocalName.ts +++ b/src/transforms/v2-to-v3/utils/getClientNewExpressionFromLocalName.ts @@ -2,7 +2,7 @@ import type { NewExpression } from "jscodeshift"; export const getClientNewExpressionFromLocalName = (v2ClientLocalName: string): NewExpression => { // Support for DynamoDB.DocumentClient - const [clientName, subClientName] = v2ClientLocalName!.split("."); + const [clientName, subClientName] = v2ClientLocalName.split("."); if (subClientName) { return {