From eec743951421e7f2ada45d4f72be11b2ad66efeb Mon Sep 17 00:00:00 2001 From: nathanmoon Date: Thu, 19 Dec 2019 05:36:42 -0700 Subject: [PATCH] Return super in example Transport subclass (#980) If called without a callback, the request method returns a Promise, so when calling into super.request, the result should be returned to maintain promise behavior. --- docs/configuration.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index 20cf2564c..6d84d1786 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -204,7 +204,7 @@ Sometimes you just need to inject a little snippet of your code and then continu class MyTransport extends Transport { request (params, options, callback) { // your code - super.request(params, options, callback) + return super.request(params, options, callback) } } ----