mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 17:40:24 +08:00
优化代码
This commit is contained in:
@@ -535,9 +535,8 @@ func (this *ServerService) UpdateServerNames(ctx context.Context, req *pb.Update
|
||||
return nil, err
|
||||
}
|
||||
if len(serverNameConfigs) > 0 {
|
||||
for index, serverName := range serverNameConfigs {
|
||||
for _, serverName := range serverNameConfigs {
|
||||
serverName.Normalize()
|
||||
serverNameConfigs[index] = serverName
|
||||
}
|
||||
req.ServerNamesJSON, err = json.Marshal(serverNameConfigs)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user