Skip to content

Commit

Permalink
Silence inconsistent flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed May 14, 2020
1 parent 3465169 commit 0be0225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style/style_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class StyleLayer extends Evented {
}

if (properties.paint) {

this._transitionablePaint = new Transitionable(properties.paint);

for (const property in layer.paint) {
Expand All @@ -101,6 +100,7 @@ class StyleLayer extends Evented {
}

this._transitioningPaint = this._transitionablePaint.untransitioned();
//$FlowFixMe
this.paint = new PossiblyEvaluated(properties.paint);
}
}
Expand Down

0 comments on commit 0be0225

Please sign in to comment.