removed double reject() call from search&replace

pull/630/head
Pedro Sá 2021-06-09 16:49:52 +01:00
parent ae1c760af0
commit 2148b37974
1 changed files with 0 additions and 2 deletions

View File

@ -479,12 +479,10 @@ export class OpenVidu {
// The request was made but no response was received // The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js // http.ClientRequest in node.js
reject(new Error(error.request));
reject(error); reject(error);
} else { } else {
// Something happened in setting up the request that triggered an Error // Something happened in setting up the request that triggered an Error
reject(new Error(error.message)); reject(new Error(error.message));
reject(new Error(error.message));
} }
}); });
}); });