Skip to content

Commit c06c9e3

Browse files
committed
nil slice declaration
1 parent 4e21d3f commit c06c9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/browser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
var UserAgent = fmt.Sprintf("%s v%s", Name, Version)
99

1010
func CleanUrlSpaces(dirtyStrings ...string) []string {
11-
result := []string{}
11+
var result []string
1212
for _, s := range dirtyStrings {
1313
result = append(result, strings.ReplaceAll(s, " ", "-"))
1414
}

0 commit comments

Comments
 (0)