diff --git a/Dockerfile b/Dockerfile index 9d505e0..e44a461 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.3 AS build +FROM golang:1.23.4 AS build WORKDIR /app ARG appVersion="" # Copy the source code. diff --git a/pkg/helper.go b/pkg/helper.go index 4ea033a..d18ca8e 100644 --- a/pkg/helper.go +++ b/pkg/helper.go @@ -199,10 +199,7 @@ func RemoveLastExtension(filename string) string { } func convertJDBCToDbConfig(jdbcURI string) (*dbConfig, error) { // Remove the "jdbc:" prefix - if strings.HasPrefix(jdbcURI, "jdbc:") { - jdbcURI = strings.TrimPrefix(jdbcURI, "jdbc:") - } - + jdbcURI = strings.TrimPrefix(jdbcURI, "jdbc:") // Parse the URI u, err := url.Parse(jdbcURI) if err != nil {