From 2cd524c0fc8bb375f32c56f6c2ee4ef6ecc19f75 Mon Sep 17 00:00:00 2001 From: Perlover Date: Fri, 12 Mar 2021 18:49:24 +0100 Subject: [PATCH] Fix in example I think it's mistake because in your example the final `then()` will call arrow function and will return callback but it should call the callback --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 164a6ba..bc62eae 100644 --- a/readme.md +++ b/readme.md @@ -82,7 +82,7 @@ console.log('Sent err to cloud'); .catch(sendError => { console.error('Error sending to cloud: ', err.stack); }) - .then(() => callback); + .then(callback); }); // Add exit hooks for a signal or custom message: