We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7864743 commit c38891bCopy full SHA for c38891b
lib/fs-helpers.js
@@ -42,18 +42,14 @@ var helpers = {
42
*
43
* @param {String} path
44
*/
45
- exists: typeof fs.access === 'function' ?
46
- function (path) {
47
- try {
48
- fs.accessSync(path);
49
- return true;
50
- } catch (err) {
51
- return false;
52
- }
53
- } :
54
55
- return fs.existsSync(path);
56
- },
+ exists: function (path) {
+ try {
+ fs.accessSync(path);
+ return true;
+ } catch (err) {
+ return false;
+ }
+ },
57
58
/**
59
0 commit comments