1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: empty projects (resolve #197)

fix: potential division by zero (see #199)
This commit is contained in:
Ferdinand Mütsch
2021-05-03 21:32:26 +02:00
parent cf3d293688
commit f3b738b250
2 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ func StringsToSet(slice []string) map[string]bool {
}
func SetToStrings(set map[string]bool) []string {
slice := make([]string, len(set))
slice := make([]string, 0, len(set))
for k := range set {
slice = append(slice, k)
}