Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed May 5, 2024
1 parent c83c708 commit 699e6e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modules/mvt/src/lib/geojsonvt/proto-tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ export function createProtoTile(features: any[], z, tx, ty, options: CreateTileO
}

// eslint-disable-next-line complexity, max-statements
function addProtoFeature(tile: ProtoTile, feature: ProtoFeature, tolerance: number, options: CreateTileOptions) {
function addProtoFeature(
tile: ProtoTile,
feature: ProtoFeature,
tolerance: number,
options: CreateTileOptions
) {
const geom = feature.geometry;
const type = feature.type;
const simplifiedGeometry: number[] = [];
Expand Down
2 changes: 1 addition & 1 deletion modules/mvt/src/table-tile-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function convertToGeoJSONTable(
}
break;
default:
throw new Error(rawFeature.simplifiedType +'is not a valid simplified type');
throw new Error(`${rawFeature.simplifiedType}is not a valid simplified type`);
}

switch (props.coordinates) {
Expand Down

0 comments on commit 699e6e2

Please sign in to comment.