Skip to content

Commit 59384fb

Browse files
committed
chore: reorganise code
pushing internal function below exported ones
1 parent 72f6f0a commit 59384fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transmitter/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { IDeleteWorkloadPayload, IDepGraphPayload, IWorkloadMetadataPayload, IRe
77

88
const upstreamUrl = config.INTEGRATION_API || config.DEFAULT_KUBERNETES_UPSTREAM_URL;
99

10-
function isSuccessStatusCode(statusCode: number | undefined): boolean {
11-
return statusCode !== undefined && statusCode > 100 && statusCode < 400;
12-
}
13-
1410
export async function sendDepGraph(...payloads: IDepGraphPayload[]): Promise<void> {
1511
for (const payload of payloads) {
1612
// Intentionally removing dependencyGraph as it would be too big to log
@@ -62,6 +58,10 @@ export async function deleteHomebaseWorkload(payload: IDeleteWorkloadPayload): P
6258
}
6359
}
6460

61+
function isSuccessStatusCode(statusCode: number | undefined): boolean {
62+
return statusCode !== undefined && statusCode > 100 && statusCode < 400;
63+
}
64+
6565
async function retryRequest(verb: NeedleHttpVerbs, url: string, payload: object): Promise<IResponseWithAttempts> {
6666
const retry = {
6767
attempts: 3,

0 commit comments

Comments
 (0)