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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user