Skip to content

Commit b10805b

Browse files
committed
lint
1 parent 229cba4 commit b10805b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

src/codeql.test.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,12 @@ test("download codeql bundle cache with different version cached (not pinned)",
143143
);
144144

145145
t.assert(toolcache.find("CodeQL", "0.0.0-20200601"));
146-
const platform = (process.platform === "win32") ? "win64" :
147-
(process.platform === "linux") ? "linux64":
148-
"osx64";
146+
const platform =
147+
process.platform === "win32"
148+
? "win64"
149+
: process.platform === "linux"
150+
? "linux64"
151+
: "osx64";
149152

150153
nock("https://github.com")
151154
.get(
@@ -193,9 +196,12 @@ test('download codeql bundle cache with pinned different version cached if "late
193196

194197
t.assert(toolcache.find("CodeQL", "0.0.0-20200601"));
195198

196-
const platform = (process.platform === "win32") ? "win64" :
197-
(process.platform === "linux") ? "linux64":
198-
"osx64";
199+
const platform =
200+
process.platform === "win32"
201+
? "win64"
202+
: process.platform === "linux"
203+
? "linux64"
204+
: "osx64";
199205

200206
nock("https://github.com")
201207
.get(

src/codeql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ let cachedCodeQL: CodeQL | undefined = undefined;
117117
const CODEQL_BUNDLE_VERSION = defaults.bundleVersion;
118118
const CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
119119

120-
function getCodeQLBundleName() : string {
121-
let platform: string
120+
function getCodeQLBundleName(): string {
121+
let platform: string;
122122
if (process.platform === "win32") {
123123
platform = "win64";
124124
} else if (process.platform === "linux") {

0 commit comments

Comments
 (0)