dresende/node-orm2 — pull request #557 by hallta (2014-09-25 05:33:14+00:00)
Title: Removing unnecessary check for aggregates in aggreate().get

I removed the check for `aggregates.length` as:
a. It iterates over the array, where of `.length` of will simply skip the aggregates
a. The execution of the method will run as expected if no literal aggregates are supplied

Where, in the example:
```
db.aggregate({column: "value"}).groupBy('column');
```
Because there are no aggregates, the method would have originally thrown an exception. However, in this case, aggregates aren't needed (just the group by), where the check prevents the execution and the expected output of this "aggregate" function.