Skip to content

Commit

Permalink
inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Aug 23, 2024
1 parent 7a8df9e commit 3754b83
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sources/dynamodb/snapshot/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3754b83

Please sign in to comment.