Skip to content

Commit

Permalink
style: fix colon spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Apr 9, 2024
1 parent f4aa348 commit e886d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/binding-modbus/src/modbus-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] === "") {
Expand Down

0 comments on commit e886d98

Please sign in to comment.