Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
theknut committed Jan 31, 2024
1 parent 2bfd733 commit 441c418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/lib/adapter-config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ declare global {
ipAddress: string;
username: string;
password: string;
pollStatesOf: string[] = [];
pollStatesOf: string[];
pollingInterval: number;
}
}
}

// this is required so the above AdapterConfig is found by TypeScript / type checking
export { };

export {};
12 changes: 2 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,8 @@ export class HexAnalogState extends CommonState {

private IEEE754_Hex32ToDez(param1: any, t: any): string {
const a = param1.toString(16);
let e,
i,
n,
l,
o,
r,
s,
d,
g,
x = '00000000';
let e, i, n, l, o, r, s, d, g;
const x = '00000000';
return (
(i = x + parseInt(a.substr(0, 2), 16).toString(2)),
(n = x + parseInt(a.substr(2, 2), 16).toString(2)),
Expand Down

0 comments on commit 441c418

Please sign in to comment.