Skip to content

Commit

Permalink
fix(linting): Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeltscher committed Jul 10, 2018
1 parent c3fcccc commit d6bd0ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function buildMapping(type: Function): { name: string | undefined, mapping: EsIn
mapping._source = meta._source;
mapping.dynamic = meta.dynamic;
}

const properties = getMetadata<Fields>(type, 'properties');
if (properties) {
mapping.properties = buildFields(properties, type);
Expand Down Expand Up @@ -94,12 +94,12 @@ function buildField(field: Field, name: string, type: Function): EsIndexTemplate
res.type = 'object';

const prototype = field.type.prototype;

const fieldTypeMeta = getMetadata<SubMappingMeta>(prototype);
if (fieldTypeMeta) {
res = { ...res, ...fieldTypeMeta };
}

const properties = getMetadata<Fields>(prototype, 'properties');
if (properties) {
res.properties = buildFields(properties, prototype);
Expand Down

0 comments on commit d6bd0ab

Please sign in to comment.