fix tslint errors

This commit is contained in:
Björn Dalfors
2024-03-07 14:58:12 +01:00
parent f25cab4682
commit 62d087bb0e
4 changed files with 11 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ export let SparkplugPayload = root.lookupType('com.cirruslink.sparkplug.protobuf
export const SparkplugDecoder = {
decode(input: Buffer): Base64Message | undefined {
try {
let message = Base64Message.fromString(
const message = Base64Message.fromString(
JSON.stringify(SparkplugPayload.toObject(SparkplugPayload.decode(new Uint8Array(input))))
)
message.decoder = Decoder.SPARKPLUG