Skip to content

Commit 1dd9e4a

Browse files
committed
fix: preallocate structs before append
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 276b315 commit 1dd9e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetProfiles() []Profile {
3030
}
3131

3232
func GetAvailableProfiles() []string {
33-
var ret []string
33+
ret := []string{}
3434
for k := range Profiles {
3535
ret = append(ret, k)
3636
}

0 commit comments

Comments
 (0)