mirror of https://github.com/linkerd/linkerd2.git
Simplified boolean expression (#5251)
Simplified boolean expressions in routes command Signed-off-by: Devdutt Shenoi <devdutt@outlook.in>
This commit is contained in:
parent
53afc7dbc4
commit
8ab6177c1f
|
@ -330,7 +330,7 @@ func buildTopRoutesRequest(resource string, options *routesOptions) (*pb.TopRout
|
|||
LabelSelector: options.labelSelector,
|
||||
}
|
||||
|
||||
options.dstIsService = !(target.GetType() == k8s.Authority)
|
||||
options.dstIsService = target.GetType() != k8s.Authority
|
||||
|
||||
if options.toResource != "" {
|
||||
if options.toNamespace == "" {
|
||||
|
@ -341,7 +341,7 @@ func buildTopRoutesRequest(resource string, options *routesOptions) (*pb.TopRout
|
|||
return nil, err
|
||||
}
|
||||
|
||||
options.dstIsService = !(toRes.GetType() == k8s.Authority)
|
||||
options.dstIsService = toRes.GetType() != k8s.Authority
|
||||
|
||||
requestParams.ToName = toRes.Name
|
||||
requestParams.ToNamespace = toRes.Namespace
|
||||
|
|
Loading…
Reference in New Issue