Skip to content

Commit aa3888b

Browse files
author
Maël Nison
committed
Lints
1 parent 6a0d254 commit aa3888b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

__tests__/integration.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,5 @@ test('cache folder fallback', async () => {
8383

8484
const options = {cwd};
8585

86-
await Promise.all([
87-
execa(command, ['cache', 'dir'].concat(args), options),
88-
]);
86+
await Promise.all([execa(command, ['cache', 'dir'].concat(args), options)]);
8987
});

src/util/fs.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ const globModule = require('glob');
1313
const os = require('os');
1414
const path = require('path');
1515

16-
export const constants = typeof fs.constants !== 'undefined' ? fs.constants : {
17-
R_OK: fs.R_OK,
18-
W_OK: fs.W_OK,
19-
X_OK: fs.X_OK,
20-
};
16+
export const constants =
17+
typeof fs.constants !== 'undefined'
18+
? fs.constants
19+
: {
20+
R_OK: fs.R_OK,
21+
W_OK: fs.W_OK,
22+
X_OK: fs.X_OK,
23+
};
2124

2225
export const lockQueue = new BlockingQueue('fs lock');
2326

0 commit comments

Comments
 (0)