From a2b4bc1bc20e8c19b045a5d5bee9c6db66c1b147 Mon Sep 17 00:00:00 2001 From: Ivan Kopeykin Date: Tue, 26 Nov 2019 13:49:52 +0300 Subject: [PATCH] fix: lint errors --- src/ValidationError.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ValidationError.js b/src/ValidationError.js index 4c94201..d635b57 100644 --- a/src/ValidationError.js +++ b/src/ValidationError.js @@ -69,7 +69,9 @@ function createPropertyFormatter(schema) { const subSchema = schema.properties[property]; if (hasType(subSchema)) { - type = subSchema.type; + const { type: subSchemaType } = subSchema; + + type = subSchemaType; } }