Skip to content

Commit

Permalink
Fixup flow type error in feature_index.js
Browse files Browse the repository at this point in the history
I don't see why, but somehow 45419ba
("Parse, typecheck, and compile expressions") causes flow to start
reporting errors expecting numeric arguments to getLineWidth
  • Loading branch information
Anand Thakker committed Jul 24, 2017
1 parent 8962197 commit 3bc2561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/feature_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class FeatureIndex {
// Get the given paint property value; if a feature is not provided and the
// property is data-driven, then default to the maximum value that the
// property takes in the (tile, layer) that this FeatureIndex is associated with
getPaintValue(property: string, layer: StyleLayer, feature: GeoJSONFeature) {
getPaintValue(property: string, layer: StyleLayer, feature: GeoJSONFeature): any {
const featureConstant = layer.isPaintValueFeatureConstant(property);
if (featureConstant || feature) {
const featureProperties = feature ? feature.properties : {};
Expand Down

0 comments on commit 3bc2561

Please sign in to comment.