We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4aa348 commit e886d98Copy full SHA for e886d98
1 file changed
packages/binding-modbus/src/modbus-client.ts
@@ -214,8 +214,8 @@ export default class ModbusClient implements ProtocolClient {
214
215
// This generates a form used internally with url content based on the uri scheme
216
// Ideally, more code should be refactored to use uri only
217
- private addFormElementsFromURLPath(input: ModbusForm) : ModbusForm {
218
- const returnForm :ModbusForm = {...input}
+ private addFormElementsFromURLPath(input: ModbusForm): ModbusForm {
+ const returnForm: ModbusForm = { ...input };
219
const { pathname, searchParams: query } = new URL(input.href);
220
const pathComp = pathname.split("/");
221
if (pathComp.length < 3 || pathComp[1] === "" || pathComp[2] === "") {
0 commit comments