From 91a440035df2a72b978bcf67bcc6bd580e00aa48 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sun, 8 Dec 2024 13:39:54 +0100 Subject: [PATCH] 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 {