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": {
let installationInfo: InstallationInfo
if (version === "" || version === undefined || isArch() || hasDnf()) {
if (version === "" || isArch() || hasDnf()) {
if (isArch()) {
installationInfo = setupPacmanPack("doxygen", version)
} else if (hasDnf()) {

View File

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

View File

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