(e *strategy.Strategy, i *Edit)
| 195 | } |
| 196 | } |
| 197 | func updateHandler(e *strategy.Strategy, i *Edit) { |
| 198 | if i.Name != nil { |
| 199 | e.Name = *i.Name |
| 200 | } |
| 201 | if i.Priority != nil { |
| 202 | e.Priority = *i.Priority |
| 203 | } |
| 204 | if i.Desc != nil { |
| 205 | e.Desc = *i.Desc |
| 206 | } |
| 207 | if i.Filters != nil { |
| 208 | e.Filters = *i.Filters |
| 209 | } |
| 210 | if i.Config != nil { |
| 211 | e.Config = *i.Config |
| 212 | } |
| 213 | if i.IsStop != nil { |
| 214 | e.IsStop = *i.IsStop |
| 215 | } |
| 216 | e.UpdateAt = time.Now() |
| 217 | } |
nothing calls this directly
no outgoing calls
no test coverage detected