mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #122315 from fazledyn-or/Fix_Inappropriate_Logic
Fixed Inappropriate Logical Expression
This commit is contained in:
commit
0cabb55f7c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user