Skip to content

Commit c6887bc

Browse files
linting
1 parent e9e0d37 commit c6887bc

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

x-pack/legacy/plugins/maps/public/layers/styles/vector/components/legend/vector_style_legend.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ export class VectorStyleLegend extends Component {
4646

4747
render() {
4848
return this.state.styles.map(style => {
49-
return (
50-
<Fragment key={style.getStyleName()}>
51-
{style.renderLegendDetailRow()}
52-
</Fragment>
53-
);
49+
return <Fragment key={style.getStyleName()}>{style.renderLegendDetailRow()}</Fragment>;
5450
});
5551
}
5652
}

x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class VectorStyle extends AbstractStyle {
365365

366366
const formatters = formattersDataRequest.getData();
367367
return formatters[fieldName];
368-
}
368+
};
369369

370370
_getStyleMeta = () => {
371371
return _.get(this._descriptor, '__styleMeta', {});
@@ -576,7 +576,13 @@ export class VectorStyle extends AbstractStyle {
576576
return new StaticSizeProperty(descriptor.options, styleName);
577577
} else if (descriptor.type === DynamicStyleProperty.type) {
578578
const field = this._makeField(descriptor.options.field);
579-
return new DynamicSizeProperty(descriptor.options, styleName, field, this._getFieldMeta, this._getFieldFormatter);
579+
return new DynamicSizeProperty(
580+
descriptor.options,
581+
styleName,
582+
field,
583+
this._getFieldMeta,
584+
this._getFieldFormatter
585+
);
580586
} else {
581587
throw new Error(`${descriptor} not implemented`);
582588
}
@@ -589,7 +595,13 @@ export class VectorStyle extends AbstractStyle {
589595
return new StaticColorProperty(descriptor.options, styleName);
590596
} else if (descriptor.type === DynamicStyleProperty.type) {
591597
const field = this._makeField(descriptor.options.field);
592-
return new DynamicColorProperty(descriptor.options, styleName, field, this._getFieldMeta, this._getFieldFormatter);
598+
return new DynamicColorProperty(
599+
descriptor.options,
600+
styleName,
601+
field,
602+
this._getFieldMeta,
603+
this._getFieldFormatter
604+
);
593605
} else {
594606
throw new Error(`${descriptor} not implemented`);
595607
}

0 commit comments

Comments
 (0)