From f130563da7a4120e8c58686dca6168a0ce3076c9 Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Tue, 4 May 2021 09:23:35 -0400 Subject: [PATCH] Run make fmt --- internal/cmd/base/servers.go | 3 +-- internal/docker/supported.go | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/cmd/base/servers.go b/internal/cmd/base/servers.go index 6c4edad04..2c846412c 100644 --- a/internal/cmd/base/servers.go +++ b/internal/cmd/base/servers.go @@ -468,14 +468,13 @@ func (b *Server) ConnectToDatabase(dialect string) error { } func (b *Server) CreateDevDatabase(ctx context.Context, opt ...Option) error { - var container, url, dialect string var err error var c func() error opts := getOpts(opt...) - //We should only get back postgres for now, but laying the foundation for non-postgres + // We should only get back postgres for now, but laying the foundation for non-postgres switch opts.withDialect { case "": b.Logger.Error("unsupported dialect. wanted: postgres, got: %v", opts.withDialect) diff --git a/internal/docker/supported.go b/internal/docker/supported.go index ca6fc98bf..172ba2088 100644 --- a/internal/docker/supported.go +++ b/internal/docker/supported.go @@ -102,7 +102,6 @@ func cleanupDockerResource(pool *dockertest.Pool, resource *dockertest.Resource) // splitImage takes the WithDatabaseImage option and separates // it into repo + tag. If a tag is not found, it sets the tag to latest func splitImage(opts Options) (string, string, error) { - separated := strings.Split(opts.withContainerImage, ":") separatedlen := len(separated) @@ -121,5 +120,4 @@ func splitImage(opts Options) (string, string, error) { return "", "", fmt.Errorf("valid reference format is repo:tag, got: %s", opts.withContainerImage) } - }