Browse Source

Don't make initial size

master
Noah Pederson 10 months ago
parent
commit
b44fbe1362
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config.go

+ 1
- 1
config.go View File

@ -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