Skip to content

Commit

Permalink
Fix lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Jan 24, 2025
1 parent 65d37fd commit d46ed23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/azd/internal/appdetect/appdetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion cli/azd/internal/repository/app_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d46ed23

Please sign in to comment.