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

Commit 76f1ea51 by Seth Samuel

Remove superfluous .then

1 parent 34099288
Showing with 0 additions and 3 deletions
......@@ -775,7 +775,6 @@ module.exports = (function() {
var self = this;
// This semi awkward syntax where we can't return the chain directly but have to return the last .then() call is to allow sql proxying
return Promise.try(function() {
// Run before hook
if (options.hooks) {
......@@ -789,8 +788,6 @@ module.exports = (function() {
if (options.hooks) {
return self.Model.runHooks('afterUndestroy', self, options);
}
}).then(function(result) {
return result;
});
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!