From 59559f72003d17a26458b9bc0ed2c46b27821521 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 630c51142..669126a17 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -251,7 +251,7 @@ use the usual client code. In such cases, call `super.method`: class MyTransport extends Transport { request (params, options, callback) { // your code - super.request(params, options, callback) + return super.request(params, options, callback) } } ----