refactor code for better read

This commit is contained in:
Adem Baccara
2025-09-10 22:28:49 +01:00
parent bb5b7554e6
commit 5ac3ebeabe
10 changed files with 574 additions and 506 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func (sf *ServerForm) dataToServer(data ServerFormData) domain.Server {
}
}
keys := []string{}
keys := make([]string, 0)
if data.Key != "" {
parts := strings.Split(data.Key, ",")
for _, p := range parts {