Skip to content

Commit d98deda

Browse files
committed
fix: fix eslint warnings
1 parent 01d80b8 commit d98deda

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

building/scripts/debug_remove.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
12
const { minify } = require("terser")
23
const { readFileSync, writeFileSync } = require("fs")
34
const { join, dirname } = require("path")

dist/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/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/gcc/__tests__/gcc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getVersion } from "../../default_versions"
55
jest.setTimeout(3000000)
66
describe("setup-gcc", () => {
77
it("should setup gcc", async () => {
8-
const version = getVersion("gcc", undefined) ?? "11"
8+
const version = getVersion("gcc", undefined) || "11"
99
const installInfo = await setupGcc(version, "", process.arch)
1010

1111
let gpp = "g++"

src/utils/env/isci.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export function isCI() {
33
}
44

55
export function isGitHubCI() {
6-
return isCI() && process.env.GITHUB_ACTIONS == "true"
6+
return isCI() && process.env.GITHUB_ACTIONS === "true"
77
}

src/utils/setup/setupChocoPack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import execa from "execa"
88
let hasChoco = false
99

1010
/** A function that installs a package using choco */
11-
export async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise<InstallationInfo> {
11+
export function setupChocoPack(name: string, version?: string, args: string[] = []): InstallationInfo {
1212
if (!hasChoco || which.sync("choco", { nothrow: true }) === null) {
1313
setupChocolatey("", "", process.arch)
1414
hasChoco = true

0 commit comments

Comments
 (0)