Run make fmt
This commit is contained in:
2 files changed
+1
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user