Skip to content

Commit

Permalink
refactor: Remove duplicate wrapped definition
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Nov 17, 2015
1 parent c697682 commit 1fe25e2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/ModelHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class ModelHandlers<TDocument extends { _id?: any }, TInstance> {
partial: false
});

let wrapped: TResult;
return Bluebird.resolve(result).then((target: any) => {
return <Bluebird<TResult>>Bluebird
// If onRetrieved returns a Bluebird promise then there is no significant performance overhead here
Expand Down

0 comments on commit 1fe25e2

Please sign in to comment.