From 91a440035df2a72b978bcf67bcc6bd580e00aa48 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sun, 8 Dec 2024 13:39:54 +0100 Subject: [PATCH 1/2] refactor: refactoring of code --- pkg/helper.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 { From 0501c151a4dfa3e2afba1faec15be91acab87abf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 06:56:30 +0000 Subject: [PATCH 2/2] chore(deps): bump golang from 1.23.3 to 1.23.4 Bumps golang from 1.23.3 to 1.23.4. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.