File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1046,19 +1046,12 @@ class TStorageGroups : public TViewerPipeClient {
1046
1046
TVector<TString> filterWords = SplitString (Filter, " " );
1047
1047
TGroupView groupView;
1048
1048
for (TGroup* group : GroupView) {
1049
- bool match = false ;
1050
1049
for (const TString& word : filterWords) {
1051
- if (group->PoolName .Contains (word)) {
1052
- match = true ;
1053
- break ;
1054
- } else if (::ToString (group->GroupId ).Contains (word)) {
1055
- match = true ;
1050
+ if (group->PoolName .Contains (word) || ::ToString (group->GroupId ).Contains (word)) {
1051
+ groupView.push_back (group);
1056
1052
break ;
1057
1053
}
1058
1054
}
1059
- if (match) {
1060
- groupView.push_back (group);
1061
- }
1062
1055
}
1063
1056
GroupView.swap (groupView);
1064
1057
Filter.clear ();
Original file line number Diff line number Diff line change @@ -1030,6 +1030,7 @@ class TJsonNodes : public TViewerPipeClient {
1030
1030
for (const TString& word : filterWords) {
1031
1031
if (node->GetHostName ().Contains (word) || ::ToString (node->GetNodeId ()).Contains (word)) {
1032
1032
nodeView.push_back (node);
1033
+ break ;
1033
1034
}
1034
1035
}
1035
1036
}
You can’t perform that action at this time.
0 commit comments