From e886d980f60f5372c515a67ae20b7a2dd43ec6fa Mon Sep 17 00:00:00 2001 From: Ege Korkan Date: Tue, 9 Apr 2024 17:00:26 +0200 Subject: [PATCH] style: fix colon spacing --- packages/binding-modbus/src/modbus-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/binding-modbus/src/modbus-client.ts b/packages/binding-modbus/src/modbus-client.ts index f42bffb07..b4f5830ad 100644 --- a/packages/binding-modbus/src/modbus-client.ts +++ b/packages/binding-modbus/src/modbus-client.ts @@ -214,8 +214,8 @@ export default class ModbusClient implements ProtocolClient { // This generates a form used internally with url content based on the uri scheme // Ideally, more code should be refactored to use uri only - private addFormElementsFromURLPath(input: ModbusForm) : ModbusForm { - const returnForm :ModbusForm = {...input} + private addFormElementsFromURLPath(input: ModbusForm): ModbusForm { + const returnForm: ModbusForm = { ...input }; const { pathname, searchParams: query } = new URL(input.href); const pathComp = pathname.split("/"); if (pathComp.length < 3 || pathComp[1] === "" || pathComp[2] === "") {