Skip to content

Commit 7f6189b

Browse files
committed
fix: fix eslint errors [skip ci]
1 parent d20e347 commit 7f6189b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

dist/node12/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
6060
}
6161
case "linux": {
6262
let installationInfo: InstallationInfo
63-
if (version === "" || version === undefined || isArch() || hasDnf()) {
63+
if (version === "" || isArch() || hasDnf()) {
6464
if (isArch()) {
6565
installationInfo = setupPacmanPack("doxygen", version)
6666
} else if (hasDnf()) {

src/powershell/__tests__/powershell.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ciDetect from "@npmcli/ci-detect"
66
jest.setTimeout(300000)
77
describe("setup-powershell", () => {
88
it("should setup powershell", async () => {
9-
if (process.platform === "win32" && ciDetect() == "github-actions") {
9+
if (process.platform === "win32" && ciDetect() === "github-actions") {
1010
// results in errors
1111
return
1212
}

src/utils/env/addEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function addEnv(name: string, valGiven: string | undefined, shouldE
3434
}
3535

3636
function escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {
37-
const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven ?? ""
37+
const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven
3838
return escapeQuote(spaceEscaped, '"', "\\")
3939
}
4040

0 commit comments

Comments
 (0)