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
commit 0cabb55f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,9 +84,7 @@ func startGRPCServer(logger klog.Logger, grpcVerbosity int, interceptors []grpc.
finalInterceptors = append(finalInterceptors, s.interceptor)
}
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...)
for _, service := range services {
service(s.server)