Skip to content

Commit c93d5b4

Browse files
committed
Converts indentation from 2 spaces to tabs in test/support/spec_helper.js
1 parent c42ebe3 commit c93d5b4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/support/spec_helper.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ var common = require('../common');
22
var async = require('async');
33

44
module.exports.connect = function(cb) {
5-
common.createConnection(function(err, conn) {
6-
if (err) throw err;
7-
cb(conn);
8-
});
5+
common.createConnection(function (err, conn) {
6+
if (err) throw err;
7+
cb(conn);
8+
});
99
};
1010

1111
module.exports.dropSync = function (models, done) {
12-
if (!Array.isArray(models)) {
13-
models = [models];
14-
}
12+
if (!Array.isArray(models)) {
13+
models = [models];
14+
}
1515

16-
async.eachSeries(models, function(item, cb) {
17-
item.drop(function(err) {
18-
if (err) throw err
19-
item.sync(function(err) {
20-
if (err) throw err
21-
cb();
22-
});
23-
});
24-
}, function() {
25-
done();
26-
});
16+
async.eachSeries(models, function (item, cb) {
17+
item.drop(function (err) {
18+
if (err) throw err
19+
20+
item.sync(function (err) {
21+
if (err) throw err
22+
23+
return cb();
24+
});
25+
});
26+
}, done);
2727
};

0 commit comments

Comments
 (0)