-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
type: bugA general bugA general bug
Description
Hi, I was checking the code in N1qlJoinResolver and there's a duplicated condition, which makes the 2nd not reachable :
Lines 143 to 148 in a998251
| } else if (lhCollection != null && rhCollection == null) { | |
| // the lhs has a collection (and therefore a scope as well), but the rhs does not have a collection. | |
| // Use the lhScope and lhCollection for the entity. The rhs is just the bucket. | |
| return new KeySpacePair(lhCollection, x(i(bucketName) + "." + i(lhScope) + "." + i(lhCollection)), // | |
| null, i(bucketName)); | |
| } else if (lhCollection != null && rhCollection == null) { |
I think (from reading comments) :
- the 1st condition should be
} else if (lhCollection != null && rhCollection == null) {(or even shorter} else if (lhCollection != null) {) - the 2nd should be
} else if (lhCollection == null && rhCollection != null) {(or even shorter} else if (rhCollection != null) {)
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug