diff --git a/lib/skeleton.js b/lib/skeleton.js index 00fcbce9..109bf1ce 100644 --- a/lib/skeleton.js +++ b/lib/skeleton.js @@ -121,8 +121,8 @@ var Skeleton = Class.extend({ if( migration instanceof Promise ) { migration - .then(function( Promise ) { - if( Promise !== undefined && cb_executed === false ) { + .then(function() { + if( cb_executed === false ) { cb_executed = true; resolve();