From 44e29f214a47ad2e8c5f3d5aebc9e9c3de3a9b4b Mon Sep 17 00:00:00 2001 From: Charles Hamel Date: Wed, 1 Jun 2016 13:48:58 -0400 Subject: [PATCH] Expected a conditional expression and instead saw an assignment It should be a conditional expression instead of an assignment --- services/mongo/mongo-bson-serialization-compile-service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/mongo/mongo-bson-serialization-compile-service.js b/services/mongo/mongo-bson-serialization-compile-service.js index 7a8a8a6a..d02c0483 100644 --- a/services/mongo/mongo-bson-serialization-compile-service.js +++ b/services/mongo/mongo-bson-serialization-compile-service.js @@ -14,7 +14,7 @@ module.exports = function (storageDriver, mongoFieldService) { return undefined; } var serializers, fieldType; - if (fieldType = mongoFieldService.fieldTypes[field.fieldType.id]) { + if (fieldType == mongoFieldService.fieldTypes[field.fieldType.id]) { serializers = {toBsonValue: fieldType.toBsonValue, fromBsonValue: fieldType.fromBsonValue}; } else { serializers = {toBsonValue: _.identity, fromBsonValue: _.identity}; @@ -25,4 +25,4 @@ module.exports = function (storageDriver, mongoFieldService) { } } } -}; \ No newline at end of file +};