From 31c35661ae73e67c5be8eaa7a1bebe11760cb588 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 5 Nov 2020 02:01:37 +0300 Subject: [PATCH] simplify Signed-off-by: Vasiliy Tolstov --- grpc.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/grpc.go b/grpc.go index d06cc1f..ff5ba65 100644 --- a/grpc.go +++ b/grpc.go @@ -707,10 +707,7 @@ func (g *grpcServer) Register() error { return nil } - var err error - var service *registry.Service - - service, err = server.NewRegistryService(g) + service, err := server.NewRegistryService(g) if err != nil { return err }