Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jkaninda/pg-bkup into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaninda committed Dec 10, 2024
2 parents 93f9595 + f9dbd0b commit 0191503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 1 addition & 4 deletions pkg/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0191503

Please sign in to comment.