Remove single-entry var blocks (#1589)

This commit is contained in:
田欧
2017-10-18 11:59:23 -05:00
committed by dfawley
parent 16c41925b8
commit faebfcb7bf
13 changed files with 49 additions and 80 deletions

View File

@ -418,11 +418,9 @@ func (s *Server) GetServiceInfo() map[string]ServiceInfo {
return ret
}
var (
// ErrServerStopped indicates that the operation is now illegal because of
// the server being stopped.
ErrServerStopped = errors.New("grpc: the server has been stopped")
)
// ErrServerStopped indicates that the operation is now illegal because of
// the server being stopped.
var ErrServerStopped = errors.New("grpc: the server has been stopped")
func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) {
if s.opts.creds == nil {