Skip to content

Commit

Permalink
etcdserver: code clean up
Browse files Browse the repository at this point in the history
Code clean up in interceptor.go
  • Loading branch information
Jingyi Hu committed Aug 15, 2018
1 parent c6c0d03 commit 264bb51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions etcdserver/api/v3rpc/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ func newUnaryInterceptor(s *etcdserver.EtcdServer) grpc.UnaryServerInterceptor {
}
}

resp, err := handler(ctx, req)
return resp, err
return handler(ctx, req)
}
}

Expand Down Expand Up @@ -210,8 +209,7 @@ func newStreamInterceptor(s *etcdserver.EtcdServer) grpc.StreamServerInterceptor
}
}

err := handler(srv, ss)
return err
return handler(srv, ss)
}
}

Expand Down

0 comments on commit 264bb51

Please sign in to comment.