Run make fmt

This commit is contained in:
Michael Gaffney committed 2021-05-04 09:23:35 -04:00
1 parent 2437cdcc8d
commit f130563da7
2 files changed
+1 -4

No files matched your search

+1 -2
View File
@@ -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)
-2
View File
@@ -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)
}
}