resolve linter issues

This commit is contained in:
David Christofas
2021-02-25 15:53:46 +01:00
parent 0802e8aac3
commit 3f30ea134b
3 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ func Server(opts ...Option) (http.Service, error) {
handle = svc.NewTracing(handle)
}
micro.RegisterHandler(service.Server(), handle)
if err := micro.RegisterHandler(service.Server(), handle); err != nil {
return http.Service{}, err
}
service.Init()
return service, nil