From 3754b8305f40797e6bb876a531b46e1959dd58cf Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Thu, 22 Aug 2024 20:28:02 -0700 Subject: [PATCH] inline. --- sources/dynamodb/snapshot/export.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sources/dynamodb/snapshot/export.go b/sources/dynamodb/snapshot/export.go index e7b8bf6f..10dc9fc0 100644 --- a/sources/dynamodb/snapshot/export.go +++ b/sources/dynamodb/snapshot/export.go @@ -51,11 +51,7 @@ func (s *Store) listExports(ctx context.Context, tableARN string) ([]types.Expor var out []types.ExportSummary var nextToken *string for { - exports, err := s.dynamoDBClient.ListExports(ctx, &dynamodb.ListExportsInput{ - TableArn: aws.String(tableARN), - NextToken: nextToken, - }) - + exports, err := s.dynamoDBClient.ListExports(ctx, &dynamodb.ListExportsInput{TableArn: aws.String(tableARN), NextToken: nextToken}) if err != nil { return nil, fmt.Errorf("failed to list exports: %w", err) }