Skip to content
Closed
Prev Previous commit
Next Next commit
test: use ES2017 syntax in test-fs-open-mask
  • Loading branch information
jy95 committed Sep 22, 2018
commit 52efdf32636296cf957c6042bd23cc596520ec94
7 changes: 1 addition & 6 deletions test/parallel/test-fs-open-mode-mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ const assert = require('assert');
const path = require('path');
const fs = require('fs');

let mode;
const mode = (common.isWindows) ? 0o444 : 0o644;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Parentheses unnecessary.

Copy link
Copy Markdown
Contributor Author

@jy95 jy95 Sep 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that they are not necessary for simple case (like this one). ESLint didn't remove them


if (common.isWindows) {
mode = 0o444;
} else {
mode = 0o644;
}

const maskToIgnore = 0o10000;

Expand Down