Skip to content

Commit

Permalink
pacify eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Nov 25, 2024
1 parent 7814fbe commit e3441ca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion modules/core/EditSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,6 @@ export class EditSystem extends AbstractSystem {
fromJSONAsync(json) {
const context = this.context;
const gfx = context.systems.gfx;
const map = context.systems.map;
const osm = context.services.osm;

const backup = JSON.parse(json);
Expand Down
5 changes: 2 additions & 3 deletions modules/pixi/PixiLayerOverture.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class PixiLayerOverture extends AbstractLayer {
this._overlaysDefined = false;

const datasets = this.context.systems.rapid.datasets;
for (const [key, dataset] of datasets.entries()) {
for (const dataset of datasets.values()) {
if (dataset.overlay) {
this._overlaysDefined = true;
}
Expand Down Expand Up @@ -81,11 +81,10 @@ export class PixiLayerOverture extends AbstractLayer {
*/
renderDataset(dataset, frame, viewport, zoom) {
const context = this.context;
const rapid = context.systems.rapid;


const service = context.services[dataset.service]; // Should be 'overture' if we've gotten here
if (!service?.started) return;

if (zoom >= 16) { // avoid firing off too many API requests
service.loadTiles(dataset.id); // fetch more
}
Expand Down
1 change: 0 additions & 1 deletion modules/pixi/PixiLayerRapid.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export class PixiLayerRapid extends AbstractLayer {
//this._uniforms.u_time = frame/10;

for (const dataset of rapid.datasets.values()) {
// TODO: Rip this out when we merge code.
if (dataset.service !== 'overture') {
this.renderDataset(dataset, frame, viewport, zoom);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/validations/curb_nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function validationCurbNodes(context) {
function applyCurbNodeFix(wayID, graph, tags) {
const way = graph.hasEntity(wayID);
if (!way) {
console.error('Way not found:', wayID);
console.error('Way not found:', wayID); // eslint-disable-line
return;
}

Expand Down

0 comments on commit e3441ca

Please sign in to comment.