Skip to content

Commit 23c4aa2

Browse files
committed
Fix style error
1 parent 1758f29 commit 23c4aa2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/backend/src/core/HttpRequestService.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ class HttpRequestServiceAgent extends http.Agent {
5454
}
5555
});
5656
return socket;
57-
};
57+
}
5858

5959
@bindThis
6060
private isPrivateIp(ip: string): boolean {
6161
const parsedIp = ipaddr.parse(ip);
62-
62+
6363
for (const net of this.config.allowedPrivateNetworks ?? []) {
6464
const cidr = ipaddr.parseCIDR(net);
6565
if (cidr[0].kind() === parsedIp.kind() && parsedIp.match(ipaddr.parseCIDR(net))) {
6666
return false;
6767
}
6868
}
69-
69+
7070
return parsedIp.range() !== 'unicast';
7171
}
7272
}
@@ -98,14 +98,14 @@ class HttpsRequestServiceAgent extends https.Agent {
9898
@bindThis
9999
private isPrivateIp(ip: string): boolean {
100100
const parsedIp = ipaddr.parse(ip);
101-
101+
102102
for (const net of this.config.allowedPrivateNetworks ?? []) {
103103
const cidr = ipaddr.parseCIDR(net);
104104
if (cidr[0].kind() === parsedIp.kind() && parsedIp.match(ipaddr.parseCIDR(net))) {
105105
return false;
106106
}
107107
}
108-
108+
109109
return parsedIp.range() !== 'unicast';
110110
}
111111
}

packages/backend/src/queue/processors/InboxProcessorService.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ export class InboxProcessorService implements OnApplicationShutdown {
192192
if (signerHost !== activityIdHost) {
193193
throw new Bull.UnrecoverableError(`skip: signerHost(${signerHost}) !== activity.id host(${activityIdHost}`);
194194
}
195-
}
196-
else {
195+
} else {
197196
throw new Bull.UnrecoverableError('skip: activity id is not a string');
198197
}
199198

0 commit comments

Comments
 (0)