不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 2bd96dd0 by sdepold

removed parentheses

1 parent ffb2772b
Showing with 4 additions and 6 deletions
...@@ -59,21 +59,19 @@ module.exports = (function() { ...@@ -59,21 +59,19 @@ module.exports = (function() {
if(this.options.from) { if(this.options.from) {
filterFrom(migrationFiles, this.options.from, function(files) { filterFrom(migrationFiles, this.options.from, function(files) {
if(self.options.to) { if(self.options.to)
filterTo(files, self.options.to, callback) filterTo(files, self.options.to, callback)
} else { else
callback && callback(files) callback && callback(files)
}
}) })
} else { } else {
getLastMigrationIdFromDatabase.call(this).success(function(lastMigrationId) { getLastMigrationIdFromDatabase.call(this).success(function(lastMigrationId) {
if(lastMigrationId) { if(lastMigrationId) {
filterFrom(migrationFiles, lastMigrationId, function(files) { filterFrom(migrationFiles, lastMigrationId, function(files) {
if(self.options.to) { if(self.options.to)
filterTo(files, self.options.to, callback) filterTo(files, self.options.to, callback)
} else { else
callback && callback(files) callback && callback(files)
}
}, { withoutEqual: true }) }, { withoutEqual: true })
} else { } else {
callback && callback(migrationFiles) callback && callback(migrationFiles)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!