schmurfy / chipi

Empty slice literal used to declare a variable GO-W1027
Anti-pattern
Minor
2 months agoa year old
Empty slice literal of type "[]string" used to define "parts"
 23}
 24
 25func (cf commentedOperation) FormattedTags() string {
 26	parts := []string{} 27
 28	for _, s := range strings.Split(cf.Tags, ",") {
 29		parts = append(parts, fmt.Sprintf(`"%s"`, s))