Skip to content

Commit

Permalink
fix golinter
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Oct 16, 2023
1 parent 0ae927c commit 6f5f190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/langserver/handlers/snippets/snippets_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ func placeholderContent(content string, typeMap map[string]string) string {
if lastPart == "resource_name" {
return "The name of the resource"
}
return fmt.Sprintf("%s", lastPart)
return lastPart
case "local":
return fmt.Sprintf("%s", lastPart)
return lastPart
case "data":
addr := strings.Join(parts[:len(parts)-1], ".")
if typeValue, ok := typeMap[addr]; ok {
Expand Down

0 comments on commit 6f5f190

Please sign in to comment.