Skip to content

Commit

Permalink
style(format): fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arhamj committed Apr 22, 2024
1 parent 61410a3 commit 280e791
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/network/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ export class NetworkClass extends EventEmitter {
return
}

if(!route && data.error) {
if (logFlags.debug)
this.mainLogger.debug('Received a hang prevention dummy payload')
return;
if (!route && data.error) {
if (logFlags.debug) this.mainLogger.debug('Received a hang prevention dummy payload')
return
}

if (!route) {
Expand Down Expand Up @@ -276,7 +275,7 @@ export class NetworkClass extends EventEmitter {
) {
const data = { route, payload: message }
const promises = []

if (!nodes || nodes.length == 0) {
/* prettier-ignore */ if (logFlags.net_verbose) console.log("returning from tellBinary because the node list is empty for route:" , route)
return
Expand All @@ -301,7 +300,6 @@ export class NetworkClass extends EventEmitter {
let errorGroup = ('' + err).slice(0, 20)
nestedCountersInstance.countEvent('network', `error2-tellBinary ${route}`)
for (const node of nodes) this.emit('error', node, requestId, 'tellBinary', errorGroup, route)

/* prettier-ignore */ if (logFlags.error) this.mainLogger.error(`Network error (tellBinary) on ${route}: ${formatErrorMessage(err)}`)
}
} else {
Expand Down

0 comments on commit 280e791

Please sign in to comment.