diff --git a/languageserver/src/client.ts b/languageserver/src/client.ts index 6028fca..a9f0651 100644 --- a/languageserver/src/client.ts +++ b/languageserver/src/client.ts @@ -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,