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

correct indentation problems

1 parent 8a4409e6
Showing with 4 additions and 4 deletions
...@@ -31,9 +31,9 @@ DaoValidator.prototype.validate = function() { ...@@ -31,9 +31,9 @@ DaoValidator.prototype.validate = function() {
error[DaoValidator.RAW_KEY_NAME] = [] error[DaoValidator.RAW_KEY_NAME] = []
Utils._.each(err, function (value) { Utils._.each(err, function (value) {
error[DaoValidator.RAW_KEY_NAME].push(value[DaoValidator.RAW_KEY_NAME]) error[DaoValidator.RAW_KEY_NAME].push(value[DaoValidator.RAW_KEY_NAME])
delete value[DaoValidator.RAW_KEY_NAME] delete value[DaoValidator.RAW_KEY_NAME]
Utils._.extend(error, value) Utils._.extend(error, value)
}) })
emitter.emit('success', error) emitter.emit('success', error)
...@@ -163,7 +163,7 @@ var prepareValidationOfAttribute = function(value, details, validatorType, optio ...@@ -163,7 +163,7 @@ var prepareValidationOfAttribute = function(value, details, validatorType, optio
try { try {
details.apply(this.model, callArgs) details.apply(this.model, callArgs)
} catch(ex) { } catch(ex) {
return next(ex) return next(ex)
} }
if (!isAsync) { if (!isAsync) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!