From 63ff3fc988137a39316f4414e519e61a8bbbfcfa Mon Sep 17 00:00:00 2001 From: Miko Date: Sat, 11 Jan 2025 00:56:18 +0100 Subject: [PATCH] run lint:js:fix --- src/serve_data.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/serve_data.js b/src/serve_data.js index 7835a82..b93bd3a 100644 --- a/src/serve_data.js +++ b/src/serve_data.js @@ -12,7 +12,12 @@ import { Image, createCanvas } from 'canvas'; import sharp from 'sharp'; import { LocalDemManager } from './contour.js'; -import { fixTileJSONCenter, getTileUrls, isValidHttpUrl, fetchTileData } from './utils.js'; +import { + fixTileJSONCenter, + getTileUrls, + isValidHttpUrl, + fetchTileData, +} from './utils.js'; import { getPMtilesInfo, openPMtiles } from './pmtiles_adapter.js'; import { gunzipP, gzipP } from './promises.js'; import { openMbTilesWrapper } from './mbtiles_wrapper.js'; @@ -172,8 +177,7 @@ export const serve_data = { if (!item) return res.sendStatus(404); if (!item.source) return res.status(404).send('Missing source'); if (!item.tileJSON) return res.status(404).send('Missing tileJSON'); - if (!item.sourceType) - return res.status(404).send('Missing sourceType'); + if (!item.sourceType) return res.status(404).send('Missing sourceType'); const { source, tileJSON, sourceType } = item; @@ -353,7 +357,7 @@ export const serve_data = { sourceType, zoom, xy[0], - xy[1] + xy[1], ); if (fetchTile == null) return res.status(204).send();