mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-06 16:53:38 +02:00
Linting goodness
This commit is contained in:
@@ -75,8 +75,7 @@ export function updateAck(messageId: number, ackCount: number, paths?: MessagePa
|
||||
updated[idx] = {
|
||||
...current,
|
||||
acked: Math.max(current.acked, ackCount),
|
||||
...(paths !== undefined &&
|
||||
paths.length >= (current.paths?.length ?? 0) && { paths }),
|
||||
...(paths !== undefined && paths.length >= (current.paths?.length ?? 0) && { paths }),
|
||||
};
|
||||
entry.messages = updated;
|
||||
return; // Message IDs are unique, stop after first match
|
||||
|
||||
Reference in New Issue
Block a user