(f func() error)
| 258 | } |
| 259 | |
| 260 | func check(f func() error) { |
| 261 | if err := f(); err != nil { |
| 262 | // todo create a central logging solution |
| 263 | zap.L().Log(zap.ErrorLevel, fmt.Sprintf("Received error:%s", err)) |
| 264 | } |
| 265 | } |
no outgoing calls
no test coverage detected