Skip to content

Commit 07b52ea

Browse files
committed
refactor: remove redundant rejectRegistration assignment
1 parent 5e5ff5c commit 07b52ea

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/lib/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,6 @@ export default class BACnetClient extends TypedEventEmitter<BACnetClientEvents>
10551055
let rejectRegistration = (_err: Error) => {}
10561056
const registrationPromise = new Promise<void>((resolve, reject) => {
10571057
let settled = false
1058-
rejectRegistration = reject
10591058
const timeout = setTimeout(() => {
10601059
cleanup()
10611060
reject(new Error('ERR_TIMEOUT'))

0 commit comments

Comments
 (0)