File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ class TJoinHypergraph {
67
67
auto leftKey = left.AttributeName ;
68
68
auto rightKey = right.AttributeName ;
69
69
70
- if (auto idx = leftKey.find_last_of (' .' ) != TString::npos) {
70
+ if (auto idx = leftKey.find_last_of (' .' ); idx != TString::npos) {
71
71
leftKey = leftKey.substr (idx+1 );
72
72
}
73
73
74
- if (auto idx = rightKey.find_last_of (' .' ) != TString::npos) {
74
+ if (auto idx = rightKey.find_last_of (' .' ); idx != TString::npos) {
75
75
rightKey = rightKey.substr (idx+1 );
76
76
}
77
77
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace {
24
24
25
25
26
26
TString RemoveAliases (TString attributeName) {
27
- if (auto idx = attributeName.find_last_of (' .' ) != TString::npos) {
27
+ if (auto idx = attributeName.find_last_of (' .' ); idx != TString::npos) {
28
28
return attributeName.substr (idx+1 );
29
29
}
30
30
return attributeName;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ using namespace Yql::DqsProto;
42
42
43
43
namespace {
44
44
TString RemoveAliases (TString attributeName) {
45
- if (auto idx = attributeName.find_last_of (' .' ) != TString::npos) {
45
+ if (auto idx = attributeName.find_last_of (' .' ); idx != TString::npos) {
46
46
return attributeName.substr (idx+1 );
47
47
}
48
48
return attributeName;
You can’t perform that action at this time.
0 commit comments