removed async from synchronous functions
This commit is contained in:
parent
61422e171f
commit
9c978d4a48
2 changed files with 3 additions and 4 deletions
|
@ -12,7 +12,6 @@ import {
|
||||||
allowedSpriteFormats,
|
allowedSpriteFormats,
|
||||||
fixUrl,
|
fixUrl,
|
||||||
readFile,
|
readFile,
|
||||||
isValidHttpUrl,
|
|
||||||
} from './utils.js';
|
} from './utils.js';
|
||||||
|
|
||||||
const httpTester = /^https?:\/\//i;
|
const httpTester = /^https?:\/\//i;
|
||||||
|
@ -200,9 +199,9 @@ export const serve_style = {
|
||||||
* @param {object} style pre-fetched/read StyleJSON object.
|
* @param {object} style pre-fetched/read StyleJSON object.
|
||||||
* @param {Function} reportTiles Function for reporting tile sources.
|
* @param {Function} reportTiles Function for reporting tile sources.
|
||||||
* @param {Function} reportFont Function for reporting font usage
|
* @param {Function} reportFont Function for reporting font usage
|
||||||
* @returns {Promise<boolean>} true if add is successful
|
* @returns {boolean} true if add is successful
|
||||||
*/
|
*/
|
||||||
add: async function (
|
add: function (
|
||||||
options,
|
options,
|
||||||
repo,
|
repo,
|
||||||
params,
|
params,
|
||||||
|
|
|
@ -202,7 +202,7 @@ async function start(opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.serve_data !== false) {
|
if (item.serve_data !== false) {
|
||||||
success = await serve_style.add(
|
success = serve_style.add(
|
||||||
options,
|
options,
|
||||||
serving.styles,
|
serving.styles,
|
||||||
item,
|
item,
|
||||||
|
|
Loading…
Reference in a new issue