MCPcopy
hub / github.com/ro31337/libretaxi / fail

Method fail

src/response-handlers/support/notify-driver.js:60–64  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

58 */
59 call(driverKey, distance, order) {
60 const fail = (reason) => {
61 log.debug(`skip notifying ${driverKey} because ${reason}`);
62 this.failCallback(reason);
63 return;
64 };
65
66 if (order.state.status !== 'new') {
67 fail('order is not new');

Callers 13

before-all.jsFile · 0.80
i18n-test.jsFile · 0.80
checkAnotherFunction · 0.80
stateful-test.jsFile · 0.80
callbackFunction · 0.80
verifyFunction · 0.80
updateFunction · 0.80
successCallbackFunction · 0.80

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected