Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Jan 19, 2025
1 parent 15d5182 commit 9c48679
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/azd/internal/appdetect/spring_boot_properties_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ func activeAzureProfile(projectPath string) error {
var newProperties = []property{
{"spring.profiles.active", azureProfileName},
}
return updatePropertyFile(filePath, newProperties, appendToCommaSeperatedValues)
return updatePropertyFile(filePath, newProperties, appendToCommaSeparatedValues)
}

func appendToCommaSeperatedValues(commaSeperatedValues string, newValue string) string {
if commaSeperatedValues == "" {
func appendToCommaSeparatedValues(commaSeparatedValues string, newValue string) string {
if commaSeparatedValues == "" {
return newValue
}
var values []string
for _, value := range strings.SplitN(commaSeperatedValues, ",", -1) {
for _, value := range strings.SplitN(commaSeparatedValues, ",", -1) {
value = strings.TrimSpace(value)
if value != "" {
values = append(values, value)
Expand Down

0 comments on commit 9c48679

Please sign in to comment.