diff --git a/src/serve_style.js b/src/serve_style.js index 2e19d3f..a9c96f6 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -12,7 +12,6 @@ import { allowedSpriteFormats, fixUrl, readFile, - isValidHttpUrl, } from './utils.js'; const httpTester = /^https?:\/\//i; @@ -200,9 +199,9 @@ export const serve_style = { * @param {object} style pre-fetched/read StyleJSON object. * @param {Function} reportTiles Function for reporting tile sources. * @param {Function} reportFont Function for reporting font usage - * @returns {Promise} true if add is successful + * @returns {boolean} true if add is successful */ - add: async function ( + add: function ( options, repo, params, diff --git a/src/server.js b/src/server.js index ea8c69a..fe1338d 100644 --- a/src/server.js +++ b/src/server.js @@ -202,7 +202,7 @@ async function start(opts) { } if (item.serve_data !== false) { - success = await serve_style.add( + success = serve_style.add( options, serving.styles, item,