mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
We’ll always have validators for a type. No check
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user