Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
znewton committed Jun 24, 2024
1 parent 883104c commit 898d65f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/gitrest/packages/gitrest-base/src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function compressData(data: string): Uint8Array {
function decompressData(data: string | Buffer): Uint8Array {
const bufferData = typeof data === "string" ? Buffer.from(data) : data;
try {
// Pako has its own compression type check that happens before the actual decompression.
// We can rely on that to determine if the data is compressed or not.
return inflate(bufferData);
} catch (error: unknown) {
if (
Expand Down

0 comments on commit 898d65f

Please sign in to comment.