From 88f20d9d851938eaf2b5ce1e73088b0c524899c9 Mon Sep 17 00:00:00 2001 From: Mark Bumiller Date: Fri, 2 Aug 2024 09:02:59 -0400 Subject: [PATCH] format fix --- lib/plugins/Label_H1_OHMA.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/plugins/Label_H1_OHMA.ts b/lib/plugins/Label_H1_OHMA.ts index 7bd7f91..d0decb1 100644 --- a/lib/plugins/Label_H1_OHMA.ts +++ b/lib/plugins/Label_H1_OHMA.ts @@ -23,24 +23,24 @@ export class Label_H1_OHMA extends DecoderPlugin { const data = message.text.slice(4); try { - const compressedBuffer = Buffer.from(data, 'base64'); - const decompress = new zlib.Inflate({windowBits: 15}); - decompress.write(compressedBuffer); - decompress.flush(zlib.constants.Z_SYNC_FLUSH); - const result = decompress.read(); - const jsonText = result.toString(); - const json = JSON.parse(jsonText); - const ohmaMsg = JSON.parse(json.message); - - decodeResult.decoded = true; - decodeResult.decoder.decodeLevel = 'full'; - decodeResult.raw.ohma = jsonText; - decodeResult.formatted.items.push({ - type: 'ohma', - code: 'OHMA' , - label: 'OHMA Downlink', - value: JSON.stringify(ohmaMsg, null, 2) - }); + const compressedBuffer = Buffer.from(data, 'base64'); + const decompress = new zlib.Inflate({windowBits: 15}); + decompress.write(compressedBuffer); + decompress.flush(zlib.constants.Z_SYNC_FLUSH); + const result = decompress.read(); + const jsonText = result.toString(); + const json = JSON.parse(jsonText); + const ohmaMsg = JSON.parse(json.message); + + decodeResult.decoded = true; + decodeResult.decoder.decodeLevel = 'full'; + decodeResult.raw.ohma = jsonText; + decodeResult.formatted.items.push({ + type: 'ohma', + code: 'OHMA' , + label: 'OHMA Downlink', + value: JSON.stringify(ohmaMsg, null, 2) + }); } catch { // Unknown if (options.debug) {