Browse Source

EAGLESIX-2651: Sum: use triple equality check

Kyle P Davis 11 years ago
parent
commit
a1244d999a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/pipeline/accumulators/SumAccumulator.js

+ 1 - 1
lib/pipeline/accumulators/SumAccumulator.js

@@ -15,7 +15,7 @@ var SumAccumulator = module.exports = function SumAccumulator() {
 
 proto.processInternal = function processInternal(input, merging) {
 	// do nothing with non numeric types
-	if (typeof input != "number"){
+	if (typeof input !== "number"){
 		if (input !== undefined && input !== null) { //NOTE: DEVIATION FROM MONGO: minor fix for 0-like values
 			this.isNumber = false;
 		}