Merge pull request #122315 from fazledyn-or/Fix_Inappropriate_Logic

Fixed Inappropriate Logical Expression
This commit is contained in:
Kubernetes Prow Robot
2023-12-21 10:31:20 +01:00
committed by GitHub

View File

@@ -84,9 +84,7 @@ func startGRPCServer(logger klog.Logger, grpcVerbosity int, interceptors []grpc.
finalInterceptors = append(finalInterceptors, s.interceptor) finalInterceptors = append(finalInterceptors, s.interceptor)
} }
finalInterceptors = append(finalInterceptors, interceptors...) finalInterceptors = append(finalInterceptors, interceptors...)
if len(finalInterceptors) >= 0 { opts = append(opts, grpc.ChainUnaryInterceptor(finalInterceptors...))
opts = append(opts, grpc.ChainUnaryInterceptor(finalInterceptors...))
}
s.server = grpc.NewServer(opts...) s.server = grpc.NewServer(opts...)
for _, service := range services { for _, service := range services {
service(s.server) service(s.server)