Skip to content

Commit 8736d48

Browse files
committed
Linting
1 parent f35fa0b commit 8736d48

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/layer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export default class Layer extends React.Component<Props> {
291291
id,
292292
minZoom,
293293
maxZoom,
294-
map,
294+
map
295295
} = prevProps;
296296

297297
if (!isEqual(this.props.paint, paint)) {

src/map-events.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export const updateEvents = (
135135
map: MapboxGl.Map
136136
) => {
137137
const toListenOff = Object.keys(events).filter(
138-
eventKey => listeners[eventKey] && typeof currentProps[eventKey] !== 'function'
138+
eventKey =>
139+
listeners[eventKey] && typeof currentProps[eventKey] !== 'function'
139140
);
140141

141142
toListenOff.forEach(key => {

src/projected-layer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ export class ProjectedLayer extends React.Component<Props, OverlayParams> {
6161

6262
private havePropsChanged(props: Props, prevProps: Props) {
6363
return (
64-
props.coordinates[0] !== prevProps.coordinates[0]
65-
|| props.coordinates[1] !== prevProps.coordinates[1]
66-
|| props.offset !== prevProps.offset
67-
|| props.anchor !== prevProps.anchor
64+
props.coordinates[0] !== prevProps.coordinates[0] ||
65+
props.coordinates[1] !== prevProps.coordinates[1] ||
66+
props.offset !== prevProps.offset ||
67+
props.anchor !== prevProps.anchor
6868
);
6969
}
7070

0 commit comments

Comments
 (0)