MCPcopy Create free account
hub / github.com/restify/node-restify / cb

Function cb

examples/todoapp/lib/server.js:158–165  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

156 // Note this is safe, as restify ensures "next" is called
157 // only once
158 function cb(err) {
159 if (err) {
160 req.log.warn(err, 'unable to delete a TODO');
161 next(err);
162 } else if (++done === req.todos.length) {
163 next();
164 }
165 }
166
167 if (req.todos.length === 0) {
168 next();

Callers 12

server.jsFile · 0.85
fireFunction · 0.85
runBenchmarkFunction · 0.85
response.test.jsFile · 0.85
request.test.jsFile · 0.85
upgrade.test.jsFile · 0.85
server.test.jsFile · 0.85
accept.test.jsFile · 0.85
client.jsFile · 0.85
formatTodoFunction · 0.85

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected