resolve linter issues

This commit is contained in:
David Christofas
2021-02-26 09:20:28 +01:00
parent 0c7874630b
commit 1f5f99996b
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -56,7 +56,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