Skip to content

Commit

Permalink
remove useless typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
henrythasler committed Sep 5, 2019
1 parent 60b3f28 commit 983510d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tileserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export class Tileserver {
this.log.show(data, LogLevels.TRACE);
if (data) {
let uncompressedBytes = data.byteLength;
if (this.gzip) mvt.data = await <Buffer><unknown>asyncgzip(data);
if (this.gzip) mvt.data = <Buffer> await asyncgzip(data);
else mvt.data = data;
let compressedBytes = mvt.data.byteLength;
this.log.show(`${path} ${source}/${tile.z}/${tile.x}/${tile.y} ${uncompressedBytes} -> ${compressedBytes}`, LogLevels.INFO);
Expand Down

0 comments on commit 983510d

Please sign in to comment.