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:
committed by
GitHub
parent
b5b7760373
commit
a989ccdc1a
Vendored
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user