不要怂,就是干,撸起袖子干!

Commit 6d499699 by Jochem Maas

goodbye semi-colons, I will miss you ... but you are not welcome in sashas house

1 parent b8ba4a25
Showing with 4 additions and 4 deletions
...@@ -321,14 +321,14 @@ module.exports = (function() { ...@@ -321,14 +321,14 @@ module.exports = (function() {
, sql : function(s) { // emit SQL , sql : function(s) { // emit SQL
emitter.emit('sql', s); emitter.emit('sql', s);
} }
}; }
self.count(copts) self.count(copts)
.on('sql', emit.sql) .on('sql', emit.sql)
.error(emit.err) .error(emit.err)
.success(function(cnt) { .success(function(cnt) {
if (cnt === 0) if (cnt === 0)
return emit.okay(cnt); // no records, no need for another query return emit.okay(cnt) // no records, no need for another query
self.findAll(options) self.findAll(options)
.on('sql', emit.sql) .on('sql', emit.sql)
...@@ -336,9 +336,9 @@ module.exports = (function() { ...@@ -336,9 +336,9 @@ module.exports = (function() {
.success(function(rows) { .success(function(rows) {
emit.okay(cnt, rows) emit.okay(cnt, rows)
}) })
}); })
}).run(); }).run()
} }
DAOFactory.prototype.max = function(field, options) { DAOFactory.prototype.max = function(field, options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!