From 4da07f3f3b8e5dc887d6f979e6fed4ed5c81899d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Sat, 28 Sep 2024 11:00:38 +0200 Subject: [PATCH] chore: simplify variable Co-authored-by: Steven Hartland --- modules/dynamodb/dynamodb.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/dynamodb/dynamodb.go b/modules/dynamodb/dynamodb.go index 52588aa692..eb0a351a8e 100644 --- a/modules/dynamodb/dynamodb.go +++ b/modules/dynamodb/dynamodb.go @@ -64,8 +64,7 @@ func (c *DynamoDBContainer) ConnectionString(ctx context.Context) (string, error return "", err } - uri := fmt.Sprintf("%s:%s", hostIP, mappedPort.Port()) - return uri, nil + return hostIP+":"+mappedPort.Port(), nil } // WithSharedDB allows container reuse between successive runs. Data will be persisted