format and lint

This commit is contained in:
Jonathan Tamsut
2023-05-01 15:14:08 -07:00
parent 3fbdfd5f2e
commit 59620fae2d
+3 -4
View File
@@ -1,6 +1,6 @@
import {Octokit} from "@octokit/rest";
import { Agent } from "node:https";
import { readFileSync } from "fs";
import {Agent} from "node:https";
import {readFileSync} from "fs";
export function getClient(token: string, userAgent?: string): Octokit {
const selfSignedCertPath = process.env.PATH_TO_SELF_SIGNED_CERT;
@@ -15,9 +15,8 @@ export function getClient(token: string, userAgent?: string): Octokit {
userAgent: userAgent || `GitHub Actions Language Server`,
request: {
agent: httpsAgent
},
}
});
} else {
return new Octokit({
auth: token,