From 94384080598948ce83be734f6bfb8cd8ae4154e5 Mon Sep 17 00:00:00 2001 From: Sergey Berezhnoy Date: Mon, 23 Oct 2017 12:20:31 +0300 Subject: [PATCH] code style --- src/Core.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core.js b/src/Core.js index 9d38cdd6..3f2ded0f 100644 --- a/src/Core.js +++ b/src/Core.js @@ -256,8 +256,7 @@ export default function Core(options) { const entity = getEntity(bemName(fields)); - entity.modDecls = entity.modDecls || []; - entity.modDecls.push({ predicate, fields, staticFields }); + (entity.modDecls || (entity.modDecls = [])).push({ predicate, fields, staticFields }); return entity; }