Skip to content

Commit

Permalink
chore: simplify fmt.Sprintf
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Hartland <stevenmhartland@gmail.com>
  • Loading branch information
mdelapenya and stevenh authored Nov 6, 2024
1 parent f3e785c commit cbc7016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/localstack/v2/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func s3Client(ctx context.Context, l *localstack.LocalStackContainer) (*s3.Clien

// reference: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/endpoints/#with-both
client := s3.NewFromConfig(awsCfg, func(o *s3.Options) {
o.BaseEndpoint = aws.String(fmt.Sprintf("http://%s:%d", host, mappedPort.Int()))
o.BaseEndpoint = aws.String("http://"+ host +":"+ mappedPort.Port()))

Check failure on line 71 in modules/localstack/v2/s3_test.go

View workflow job for this annotation

GitHub Actions / test-modules (1.22.x, ubuntu-latest, localstack) / modules/localstack/ubuntu-latest/1.22.x

expected statement, found ')' (typecheck)

Check failure on line 71 in modules/localstack/v2/s3_test.go

View workflow job for this annotation

GitHub Actions / test-modules (1.x, ubuntu-latest, localstack) / modules/localstack/ubuntu-latest/1.x

expected statement, found ')' (typecheck)
o.EndpointResolverV2 = &resolverV2{}
o.UsePathStyle = true
})
Expand Down

0 comments on commit cbc7016

Please sign in to comment.