mirror of https://github.com/aminya/setup-cpp
fix: fix eslint errors [skip ci]
This commit is contained in:
parent
d20e347c91
commit
7f6189b28f
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
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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, '"', "\\")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue