mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
4f87522244
commit
bb29405904
293 changed files with 1108 additions and 1051 deletions
|
@ -20,13 +20,13 @@ for (encoding in expected) {
|
|||
const expected_value = expected[encoding];
|
||||
let result;
|
||||
|
||||
result = fs.realpathSync(string_dir, {encoding: encoding});
|
||||
result = fs.realpathSync(string_dir, { encoding: encoding });
|
||||
assert.strictEqual(result, expected_value);
|
||||
|
||||
result = fs.realpathSync(string_dir, encoding);
|
||||
assert.strictEqual(result, expected_value);
|
||||
|
||||
result = fs.realpathSync(buffer_dir, {encoding: encoding});
|
||||
result = fs.realpathSync(buffer_dir, { encoding: encoding });
|
||||
assert.strictEqual(result, expected_value);
|
||||
|
||||
result = fs.realpathSync(buffer_dir, encoding);
|
||||
|
@ -34,13 +34,13 @@ for (encoding in expected) {
|
|||
}
|
||||
|
||||
let buffer_result;
|
||||
buffer_result = fs.realpathSync(string_dir, {encoding: 'buffer'});
|
||||
buffer_result = fs.realpathSync(string_dir, { encoding: 'buffer' });
|
||||
assert.deepStrictEqual(buffer_result, buffer_dir);
|
||||
|
||||
buffer_result = fs.realpathSync(string_dir, 'buffer');
|
||||
assert.deepStrictEqual(buffer_result, buffer_dir);
|
||||
|
||||
buffer_result = fs.realpathSync(buffer_dir, {encoding: 'buffer'});
|
||||
buffer_result = fs.realpathSync(buffer_dir, { encoding: 'buffer' });
|
||||
assert.deepStrictEqual(buffer_result, buffer_dir);
|
||||
|
||||
buffer_result = fs.realpathSync(buffer_dir, 'buffer');
|
||||
|
@ -50,25 +50,33 @@ assert.deepStrictEqual(buffer_result, buffer_dir);
|
|||
for (encoding in expected) {
|
||||
const expected_value = expected[encoding];
|
||||
|
||||
fs.realpath(string_dir, {encoding: encoding}, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
}));
|
||||
fs.realpath(
|
||||
string_dir,
|
||||
{ encoding: encoding },
|
||||
common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
})
|
||||
);
|
||||
fs.realpath(string_dir, encoding, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
}));
|
||||
fs.realpath(buffer_dir, {encoding: encoding}, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
}));
|
||||
fs.realpath(
|
||||
buffer_dir,
|
||||
{ encoding: encoding },
|
||||
common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
})
|
||||
);
|
||||
fs.realpath(buffer_dir, encoding, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(res, expected_value);
|
||||
}));
|
||||
}
|
||||
|
||||
fs.realpath(string_dir, {encoding: 'buffer'}, common.mustCall((err, res) => {
|
||||
fs.realpath(string_dir, { encoding: 'buffer' }, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.deepStrictEqual(res, buffer_dir);
|
||||
}));
|
||||
|
@ -78,7 +86,7 @@ fs.realpath(string_dir, 'buffer', common.mustCall((err, res) => {
|
|||
assert.deepStrictEqual(res, buffer_dir);
|
||||
}));
|
||||
|
||||
fs.realpath(buffer_dir, {encoding: 'buffer'}, common.mustCall((err, res) => {
|
||||
fs.realpath(buffer_dir, { encoding: 'buffer' }, common.mustCall((err, res) => {
|
||||
assert.ifError(err);
|
||||
assert.deepStrictEqual(res, buffer_dir);
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue