Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
veged committed Oct 23, 2017
1 parent b25cf9c commit 9438408
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9438408

Please sign in to comment.