format and lint
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user