minor fix
This commit is contained in:
parent
bed7d19f37
commit
45e3aba990
|
|
@ -35066,7 +35066,7 @@ class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36835,7 +36835,7 @@ class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ abstract class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue