Browse Source

Don't make initial size

master
Noah Pederson 1 year ago
parent
commit
b44fbe1362
  1. 2
      config.go

2
config.go

@ -138,7 +138,7 @@ func loadConfigFromFile(path string) (*Config, error) {
func splitClean(s string) []string {
split := strings.Split(strings.TrimSpace(s), ",")
output := make([]string, 1, len(split))
output := make([]string, 0, len(split))
for _, v := range split {
if v != "" && v != " " {
output = append(output, strings.TrimSpace(v))

Loading…
Cancel
Save