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,
|
||||
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<boolean>} true if add is successful
|
||||
* @returns {boolean} true if add is successful
|
||||
*/
|
||||
add: async function (
|
||||
add: function (
|
||||
options,
|
||||
repo,
|
||||
params,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue