From a50af4a3e9c03c4cda5ed5574e4797c0ce1055e7 Mon Sep 17 00:00:00 2001 From: Martin Chodur Date: Mon, 8 Jun 2020 12:01:34 +0200 Subject: [PATCH] fix swift: fix broken syntax Signed-off-by: Martin Chodur --- pkg/objstore/swift/swift.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkg/objstore/swift/swift.go b/pkg/objstore/swift/swift.go index 0da70e7769b..a7b92989edc 100644 --- a/pkg/objstore/swift/swift.go +++ b/pkg/objstore/swift/swift.go @@ -184,16 +184,15 @@ func NewContainerFromConfig(logger log.Logger, sc *Config, createContainer bool) } else if _, err := ensureContainer(connection, sc.SegmentContainerName, createContainer); err != nil { return nil, err } -} -container := Container{ -logger: logger, -name: sc.ContainerName, -connection: connection, -chunkSize: sc.ChunkSize, -segmentsContainer: sc.SegmentContainerName, -} -return &container, nil + container := Container{ + logger: logger, + name: sc.ContainerName, + connection: connection, + chunkSize: sc.ChunkSize, + segmentsContainer: sc.SegmentContainerName, + } + return &container, nil } // Name returns the container name for swift.