Skip to content

Commit f47e892

Browse files
build error fix
1 parent 817da96 commit f47e892

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/routes/builds.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var checkFound = require('middlewares/check-found');
2020
var Boom = mw.Boom;
2121
var runnable = require('middlewares/apis').runnable;
2222
var error = require('error');
23-
var createCount = require('callback-count');
2423
var pluck = require('101/pluck');
2524
var 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
),

0 commit comments

Comments
 (0)