Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Dec 18, 2019
1 parent e9e0d37 commit c6887bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export class VectorStyleLegend extends Component {

render() {
return this.state.styles.map(style => {
return (
<Fragment key={style.getStyleName()}>
{style.renderLegendDetailRow()}
</Fragment>
);
return <Fragment key={style.getStyleName()}>{style.renderLegendDetailRow()}</Fragment>;
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class VectorStyle extends AbstractStyle {

const formatters = formattersDataRequest.getData();
return formatters[fieldName];
}
};

_getStyleMeta = () => {
return _.get(this._descriptor, '__styleMeta', {});
Expand Down Expand Up @@ -576,7 +576,13 @@ export class VectorStyle extends AbstractStyle {
return new StaticSizeProperty(descriptor.options, styleName);
} else if (descriptor.type === DynamicStyleProperty.type) {
const field = this._makeField(descriptor.options.field);
return new DynamicSizeProperty(descriptor.options, styleName, field, this._getFieldMeta, this._getFieldFormatter);
return new DynamicSizeProperty(
descriptor.options,
styleName,
field,
this._getFieldMeta,
this._getFieldFormatter
);
} else {
throw new Error(`${descriptor} not implemented`);
}
Expand All @@ -589,7 +595,13 @@ export class VectorStyle extends AbstractStyle {
return new StaticColorProperty(descriptor.options, styleName);
} else if (descriptor.type === DynamicStyleProperty.type) {
const field = this._makeField(descriptor.options.field);
return new DynamicColorProperty(descriptor.options, styleName, field, this._getFieldMeta, this._getFieldFormatter);
return new DynamicColorProperty(
descriptor.options,
styleName,
field,
this._getFieldMeta,
this._getFieldFormatter
);
} else {
throw new Error(`${descriptor} not implemented`);
}
Expand Down

0 comments on commit c6887bc

Please sign in to comment.