|
|
@@ -34,7 +34,7 @@ var FieldPathExpression = module.exports = (function(){
|
|
|
**/
|
|
|
proto._evaluatePath = function _evaluatePath(obj, i, len){
|
|
|
var fieldName = this.path.fields[i],
|
|
|
- field = obj ? obj[fieldName] : undefined; // It is possible we won't have an obj (document) and we need to not fail if that is the case
|
|
|
+ field = obj[fieldName]; // It is possible we won't have an obj (document) and we need to not fail if that is the case
|
|
|
|
|
|
// if the field doesn't exist, quit with an undefined value
|
|
|
if (field === undefined) return undefined;
|