File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ var checkFound = require('middlewares/check-found');
2020var Boom = mw . Boom ;
2121var runnable = require ( 'middlewares/apis' ) . runnable ;
2222var error = require ( 'error' ) ;
23- var createCount = require ( 'callback-count' ) ;
2423var pluck = require ( '101/pluck' ) ;
2524var noop = require ( '101/noop' ) ;
2625
@@ -237,11 +236,8 @@ app.post('/builds/:id/actions/build',
237236 ) . catch (
238237 function ( err , req , res , next ) {
239238 error . log ( err , req ) ;
240- var count = createCount ( 2 , next ) ;
241- req . contextVersion . updateBuildError ( err ,
242- logIfErrAndNext ( count . next . bind ( count ) ) ) ;
243239 req . build . modifyErrored ( req . contextVersion . _id ,
244- logIfErrAndNext ( count . next . bind ( count ) ) ) ;
240+ logIfErrAndNext ( next ) ) ;
245241 }
246242 )
247243 ) ,
You can’t perform that action at this time.
0 commit comments