Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
return
}

let data: any

Check warning on line 186 in src/Socket/messages-recv.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
try {
data = JSON.parse(mexNode.content.toString())
} catch (error) {
Expand Down Expand Up @@ -279,7 +279,7 @@
case 'update':
const settingsNode = getBinaryNodeChild(child, 'settings')
if (settingsNode) {
const update: Record<string, any> = {}

Check warning on line 282 in src/Socket/messages-recv.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
const nameNode = getBinaryNodeChild(settingsNode, 'name')
if (nameNode?.content) update.name = nameNode.content.toString()

Expand Down Expand Up @@ -1235,7 +1235,7 @@
logger.debug(`[handleMessage] Attempting retry request for failed decryption`)

// Handle both pre-key and normal retries in single mutex
await retryMutex.mutex(async () => {
void retryMutex.mutex(async () => {
try {
if (!ws.isOpen) {
logger.debug({ node }, 'Connection closed, skipping retry')
Expand Down
4 changes: 2 additions & 2 deletions src/Socket/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@

const msgId = node.attrs.id

const result = await promiseTimeout<any>(timeoutMs, async (resolve, reject) => {

Check warning on line 195 in src/Socket/socket.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
const result = waitForMessage(msgId, timeoutMs).catch(reject)
sendNode(node)
.then(async () => resolve(await result))
Expand Down Expand Up @@ -566,8 +566,8 @@
}
}

const onMessageReceived = async (data: Buffer) => {
await noise.decodeFrame(data, frame => {
const onMessageReceived = (data: Buffer) => {
void noise.decodeFrame(data, frame => {
// reset ping timeout
lastDateRecv = new Date()

Expand Down Expand Up @@ -826,7 +826,7 @@
ws.on('open', async () => {
try {
await validateConnection()
} catch (err: any) {

Check warning on line 829 in src/Socket/socket.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
logger.error({ err }, 'error in validating connection')
end(err)
}
Expand Down Expand Up @@ -894,7 +894,7 @@
ev.emit('connection.update', { isNewLogin: true, qr: undefined })

await sendNode(reply)
} catch (error: any) {

Check warning on line 897 in src/Socket/socket.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
logger.info({ trace: error.stack }, 'error in pairing')
end(error)
}
Expand Down
Loading