Skip to content

Commit 3f63857

Browse files
authored
fix: replace fs.R_OK with fs.constants.R_OK (#1540)
1 parent 7c5d222 commit 3f63857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/path-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = {
9797
existsSync(pathToCheck) {
9898
if (fs.accessSync) {
9999
try {
100-
fs.accessSync(pathToCheck, fs.R_OK);
100+
fs.accessSync(pathToCheck, fs.constants.R_OK);
101101
return true;
102102
} catch (e) {
103103
return false;

0 commit comments

Comments
 (0)