fix: fix eslint errors [skip ci]

This commit is contained in:
Amin Yahyaabadi 2022-11-20 23:34:33 -08:00
parent d20e347c91
commit 7f6189b28f
7 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
} }
case "linux": { case "linux": {
let installationInfo: InstallationInfo let installationInfo: InstallationInfo
if (version === "" || version === undefined || isArch() || hasDnf()) { if (version === "" || isArch() || hasDnf()) {
if (isArch()) { if (isArch()) {
installationInfo = setupPacmanPack("doxygen", version) installationInfo = setupPacmanPack("doxygen", version)
} else if (hasDnf()) { } else if (hasDnf()) {

View File

@ -6,7 +6,7 @@ import ciDetect from "@npmcli/ci-detect"
jest.setTimeout(300000) jest.setTimeout(300000)
describe("setup-powershell", () => { describe("setup-powershell", () => {
it("should setup powershell", async () => { it("should setup powershell", async () => {
if (process.platform === "win32" && ciDetect() == "github-actions") { if (process.platform === "win32" && ciDetect() === "github-actions") {
// results in errors // results in errors
return return
} }

View File

@ -34,7 +34,7 @@ export async function addEnv(name: string, valGiven: string | undefined, shouldE
} }
function escapeString(valGiven: string, shouldEscapeSpace: boolean = false) { function escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {
const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven ?? "" const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven
return escapeQuote(spaceEscaped, '"', "\\") return escapeQuote(spaceEscaped, '"', "\\")
} }