Skip to content

Commit d373b41

Browse files
committed
Fixed styling.
1 parent 7fc009b commit d373b41

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

lib/form_data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ FormData.prototype.append = function(field, value, options) {
2929
if (typeof value == 'number') value = ''+value;
3030

3131
// https://github.com/felixge/node-form-data/issues/38
32-
if (util.isArray(value))
33-
{
32+
if (util.isArray(value)) {
3433
// Please convert your array into string
3534
// the way web server expects it
3635
this._error(new Error('Arrays are not supported.'));

test/integration/test-errors.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ var fs = require('fs');
1212
var callback = fake.callback(arguments.callee.name + '-onError-append');
1313
fake.expectAnytime(callback, ['Arrays are not supported.']);
1414

15-
form.on('error', function(err)
16-
{
15+
form.on('error', function(err) {
1716
// workaroud for expectAnytime handling objects
1817
callback(err.message);
1918
});
@@ -52,8 +51,7 @@ var fs = require('fs');
5251
var callback = fake.callback(arguments.callee.name + '-onError-getLengthSync');
5352
fake.expectAnytime(callback, ['Cannot calculate proper length in synchronous way.']);
5453

55-
form.on('error', function(err)
56-
{
54+
form.on('error', function(err) {
5755
// workaroud for expectAnytime handling objects
5856
callback(err.message);
5957
});

test/integration/test-submit-custom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ server.listen(common.port, function() {
5151

5252
var form = new FormData();
5353

54-
for (var name in FIELDS)
55-
{
54+
for (var name in FIELDS) {
5655
if (!FIELDS.hasOwnProperty(name)) continue;
5756

5857
// important to append ReadStreams within the same tick

test/integration/test-submit.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ server.listen(common.port, function() {
5151

5252
var form = new FormData();
5353

54-
for (var name in FIELDS)
55-
{
54+
for (var name in FIELDS) {
5655
if (!FIELDS.hasOwnProperty(name)) continue;
5756

5857
// important to append ReadStreams within the same tick

0 commit comments

Comments
 (0)