Skip to content

Commit be7c9f5

Browse files
nathanmoondelvedor
authored andcommitted
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.
1 parent 35b03ae commit be7c9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/configuration.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ use the usual client code. In such cases, call `super.method`:
251251
class MyTransport extends Transport {
252252
request (params, options, callback) {
253253
// your code
254-
super.request(params, options, callback)
254+
return super.request(params, options, callback)
255255
}
256256
}
257257
----

0 commit comments

Comments
 (0)