File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function isNeeded(version, done) {
7070 }
7171
7272 return config . save ( function ( ) {
73- done ( null , false ) ;
73+ done ( undefined , false ) ;
7474 } ) ;
7575 } else {
7676 config = configs [ 0 ] ;
@@ -93,7 +93,7 @@ function isFreshDb(cb) {
9393 if ( err ) return cb ( err ) ;
9494
9595 if ( res === 0 ) {
96- return cb ( null , true ) ;
96+ return cb ( undefined , true ) ;
9797 }
9898
9999 return cb ( undefined , false ) ;
@@ -102,10 +102,10 @@ function isFreshDb(cb) {
102102
103103function needConfigObj ( cb ) {
104104 models . Config . count ( function ( err , res ) {
105- if ( err ) return err ;
105+ if ( err ) return cb ( err ) ;
106106
107107 if ( res === 0 ) {
108- return cb ( null , true ) ;
108+ return cb ( undefined , true ) ;
109109 }
110110
111111 return cb ( undefined , false ) ;
You can’t perform that action at this time.
0 commit comments