2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

Change isNaN to Number.isNaN

* Change isNaN to Number.isNaN

* == to ===

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Mustafa Ateş Uzun
2023-08-30 21:47:01 +03:00
committed by GitHub
parent b5b7760373
commit a989ccdc1a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -3027,7 +3027,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
// This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
const timeout = parseInt(config.timeout, 10);
if (isNaN(timeout)) {
if (Number.isNaN(timeout)) {
reject(new AxiosError(
'error trying to parse `config.timeout` to int',
AxiosError.ERR_BAD_OPTION_VALUE,