Browse Source

EAGLESIX-2651: MinMax: tabs beats spaces

Kyle P Davis 11 years ago
parent
commit
d8f02c4729
1 changed files with 12 additions and 13 deletions
  1. 12 13
      lib/pipeline/accumulators/MinMaxAccumulator.js

+ 12 - 13
lib/pipeline/accumulators/MinMaxAccumulator.js

@@ -17,22 +17,22 @@ var MinMaxAccumulator = module.exports = function MinMaxAccumulator(theSense){
 var Value = require("../Value");
 
 proto.processInternal = function processInternal(input, merging) {
-    // nullish values should have no impact on result
-    if (!(input === undefined || input === null)) {
-        // compare with the current value; swap if appropriate
-        var cmp = Value.compare(this._val, input) * this._sense;
-        if (cmp > 0 || this._val === undefined) { // missing is lower than all other values
-            this._val = input;
-        }
-    }
+	// nullish values should have no impact on result
+	if (!(input === undefined || input === null)) {
+		// compare with the current value; swap if appropriate
+		var cmp = Value.compare(this._val, input) * this._sense;
+		if (cmp > 0 || this._val === undefined) { // missing is lower than all other values
+			this._val = input;
+		}
+	}
 };
 
 proto.getValue = function getValue(toBeMerged) {
-    return this._val;
+	return this._val;
 };
 
 proto.reset = function reset() {
-    this._val = undefined;
+	this._val = undefined;
 };
 
 klass.createMin = function createMin(){
@@ -44,7 +44,6 @@ klass.createMax = function createMax(){
 };
 
 proto.getOpName = function getOpName() {
-    if (this._sense == 1)
-        return "$min";
-    return "$max";
+	if (this._sense == 1) return "$min";
+	return "$max";
 };