From d46ed232cbb343315334e9c608512fdc59fe4f01 Mon Sep 17 00:00:00 2001 From: rujche Date: Fri, 24 Jan 2025 22:32:49 +0800 Subject: [PATCH] Fix lint error. --- cli/azd/internal/appdetect/appdetect.go | 3 ++- cli/azd/internal/repository/app_init.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/azd/internal/appdetect/appdetect.go b/cli/azd/internal/appdetect/appdetect.go index 38ea64830cf..7e890f0fba3 100644 --- a/cli/azd/internal/appdetect/appdetect.go +++ b/cli/azd/internal/appdetect/appdetect.go @@ -113,7 +113,8 @@ type RawDependencyKind string const RawDependencyKindMaven RawDependencyKind = "maven" const MavenDependencyNameMySqlConnectorJ = "com.mysql:mysql-connector-j" const MavenDependencyNamePostgresql = "org.postgresql:postgresql" -const MavenDependencyNameSpringCloudAzureStarterJdbcPostgresql = "com.azure.spring:spring-cloud-azure-starter-jdbc-postgresql" +const MavenDependencyNameSpringCloudAzureStarterJdbcPostgresql = "com.azure.spring:" + + "spring-cloud-azure-starter-jdbc-postgresql" const MavenDependencyNameSpringBootMavenPlugin = "org.springframework.boot:spring-boot-maven-plugin" // A type of database that is inferred through heuristics while scanning project information. diff --git a/cli/azd/internal/repository/app_init.go b/cli/azd/internal/repository/app_init.go index d08d33d1169..f6898bd6d84 100644 --- a/cli/azd/internal/repository/app_init.go +++ b/cli/azd/internal/repository/app_init.go @@ -304,7 +304,8 @@ func (i *Initializer) InitFromApp( continue } switch dep.Name { - case appdetect.MavenDependencyNamePostgresql, appdetect.MavenDependencyNameSpringCloudAzureStarterJdbcPostgresql: + case appdetect.MavenDependencyNamePostgresql, + appdetect.MavenDependencyNameSpringCloudAzureStarterJdbcPostgresql: err := addPostgresqlConnectionProperties(proj.Path) if err != nil { return err