Browse Source

EAGLESIX-2651: Push: tabs beats spaces

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

+ 10 - 10
lib/pipeline/accumulators/PushAccumulator.js

@@ -14,19 +14,19 @@ var PushAccumulator = module.exports = function PushAccumulator(){
 }, klass = PushAccumulator, Accumulator = require("./Accumulator"), base = Accumulator, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
 
 proto.processInternal = function processInternal(input, merging) {
-    if (!merging) {
-        if (input !== undefined) {
-            this.values.push(input);
-        }
-    } else {
-        // If we're merging, we need to take apart the arrays we
-        // receive and put their elements into the array we are collecting.
-        // If we didn't, then we'd get an array of arrays, with one array
-        // from each merge source.
+	if (!merging) {
+		if (input !== undefined) {
+			this.values.push(input);
+		}
+	} else {
+		// If we're merging, we need to take apart the arrays we
+		// receive and put their elements into the array we are collecting.
+		// If we didn't, then we'd get an array of arrays, with one array
+		// from each merge source.
 		if (!Array.isArray(input)) throw new Error("Assertion failure");
 
 		Array.prototype.push.apply(this.values, input);
-    }
+	}
 };
 
 proto.getValue = function getValue(toBeMerged) {