Convert MOUNT_DEFAULT_TIMEOUT into integer

This commit is contained in:
Di Weng 2024-10-07 22:32:02 +08:00 committed by GitHub
parent 4ec9ff23f2
commit 78a75e8775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const FINDMNT_COMMON_OPTIONS = [
"--nofsroot", // prevents unwanted behavior with cifs volumes
];
const DEFAULT_TIMEOUT = process.env.MOUNT_DEFAULT_TIMEOUT || 30000;
const DEFAULT_TIMEOUT = process.env.MOUNT_DEFAULT_TIMEOUT ? +process.env.MOUNT_DEFAULT_TIMEOUT : 3000;
class Mount {
constructor(options = {}) {