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

You need to sign in or sign up before continuing.
Commit 28840a39 by Sascha Depold

removed obsolete array mapping

1 parent 732a7b34
Showing with 0 additions and 4 deletions
...@@ -30,10 +30,6 @@ module.exports = (function() { ...@@ -30,10 +30,6 @@ module.exports = (function() {
if (err) { if (err) {
this.emit('error', err, this.callee) this.emit('error', err, this.callee)
} else { } else {
if (Array.isArray(results) && !!results[0] && Utils._.keys(results[0]).length === 1) {
results = results.map(function(result){ return Utils._.values(result)[0] })
}
this.emit('success', this.formatResults(results)) this.emit('success', this.formatResults(results))
} }
}.bind(this)).setMaxListeners(100) }.bind(this)).setMaxListeners(100)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!