Skip to content

Commit

Permalink
the timeout parameter doesn't have to be optional because the HttpPro…
Browse files Browse the repository at this point in the history
…vider is defining a default value
  • Loading branch information
Samuel Furter committed Mar 28, 2019
1 parent 6601f73 commit 7e267f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class ProvidersModuleFactory {
*
* @returns {XMLHttpRequest}
*/
createXMLHttpRequest(host, timeout = 0, headers, agent, withCredentials) {
createXMLHttpRequest(host, timeout, headers, agent, withCredentials) {
let request;

// runtime is of type node
Expand Down

0 comments on commit 7e267f3

Please sign in to comment.