Fix error (#321)

This commit is contained in:
guibescos 2022-09-29 23:03:03 -05:00 committed by GitHub
parent 0d3f030ad2
commit 3a56d0a8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ async function send(
);
// @ts-ignore -- TransportStatusError is a constructor Function, not a Class
if (response.length !== 2)
throw new TransportStatusError(StatusCodes.INCORRECT_DATA);
throw TransportStatusError(StatusCodes.INCORRECT_DATA);
p2 |= P2_EXTEND;
offset += MAX_PAYLOAD;