From 4d1ebe83b8be63d4996ddfda17ee247f34021610 Mon Sep 17 00:00:00 2001 From: m0lc14kk Date: Fri, 28 Feb 2025 14:15:02 +0100 Subject: [PATCH] fix: fixed lint errors --- src/transforms/framer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transforms/framer.js b/src/transforms/framer.js index 4f3f5fc..be8be5d 100644 --- a/src/transforms/framer.js +++ b/src/transforms/framer.js @@ -1,6 +1,6 @@ const [readVarInt, writeVarInt, sizeOfVarInt] = require('protodef').types.varint const zlib = require('zlib') -const snappy = require("snappy"); +const snappy = require('snappy') // Concatenates packets into one batch packet, and adds length prefixs. class Framer { @@ -31,7 +31,7 @@ class Framer { return zlib.inflateRawSync(buffer, { chunkSize: 512000 }) case 1: case 'snappy': - return snappy.uncompressSync(buffer); + return snappy.uncompressSync(buffer) case 'none': case 255: return buffer