refactor #1

Merged
jkaninda merged 21 commits from refactor into main 2024-12-12 16:01:26 +01:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit 01915039e7 - Show all commits

View File

@@ -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.

View File

@@ -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 {