Skip to content

Commit

Permalink
remove shouldGzip
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Mar 12, 2024
1 parent 2fe23db commit 771f7df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fastify-plugins/maps/static-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const mime = new Mime(standardTypes, { 'application/x-protobuf': ['pbf'] })
/**
* @param {string} baseDirectory
* @param {import('@sinclair/typebox').Static<typeof GetStaticMapTileParamsSchema>} params
* @returns {null | { data: Buffer, mimeType: string | null, shouldGzip: boolean}}
* @returns {null | { data: Buffer, mimeType: string | null }}
*/
function getStyleTileInfo(baseDirectory, params) {
const { styleId, tileId, z, x, y } = params
Expand Down Expand Up @@ -273,7 +273,5 @@ function getStyleTileInfo(baseDirectory, params) {

const mimeType = mime.getType(ext)

const shouldGzip = ext === 'mvt' || ext === 'pbf'

return { data, mimeType, shouldGzip }
return { data, mimeType }
}

0 comments on commit 771f7df

Please sign in to comment.