From 8b39ce77b11e22ae904135386bee72038e86d599 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 25 Sep 2014 14:30:08 -0700 Subject: [PATCH] =?UTF-8?q?We=E2=80=99ll=20always=20have=20validators=20fo?= =?UTF-8?q?r=20a=20type.=20No=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config.coffee b/src/config.coffee index 847a86e13..ff7402d9a 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -287,12 +287,11 @@ class Config types = [types] unless Array.isArray(types) for type in types try - if filterFunctions = @schemaValidators[type] - filterFunctions = filterFunctions.concat(@schemaValidators['*']) - for filter in filterFunctions - value = filter.call(this, keyPath, value, schema) - error = null - break + filterFunctions = @schemaValidators[type].concat(@schemaValidators['*']) + for filter in filterFunctions + value = filter.call(this, keyPath, value, schema) + error = null + break catch e error = e