Skip to content

Commit baf87ee

Browse files
committed
chore: use correct quotation
1 parent f855834 commit baf87ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/binding-modbus/src/modbus-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default class ModbusClient implements ProtocolClient {
217217
private generateFormFromURLPath(input: ModbusForm) {
218218
const { pathname, searchParams: query } = new URL(input.href);
219219
const pathComp = pathname.split("/");
220-
if ((pathComp.length < 3) || pathComp[1] ==='' || pathComp[2]==='') {
220+
if (pathComp.length < 3 || pathComp[1] === "" || pathComp[2] === "") {
221221
throw new Error("Malformed href: unitID and address must be defined");
222222
}
223223
input["modv:unitID"] = parseInt(pathComp[1], 10);

0 commit comments

Comments
 (0)