Skip to content

Commit d982116

Browse files
authored
Run linting (game-ci#207)
1 parent b9980d6 commit d982116

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

dist/index.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.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/model/results-check.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,12 @@ const ResultsCheck = {
7676
const pullRequest = github.context.payload.pull_request;
7777
const headSha = (pullRequest && pullRequest.head.sha) || github.context.sha;
7878

79-
const maxLen = 65534;
80-
if(output.length > maxLen)
81-
{
82-
core.warning(`Output too long (${output.length}) truncating to ${maxLen}`);
83-
output = output.substring(0, maxLen);
79+
const maxLength = 65_534;
80+
if (output.length > maxLength) {
81+
core.warning(`Output too long (${output.length}) truncating to ${maxLength}`);
82+
output = output.slice(0, maxLength);
8483
}
8584

86-
8785
core.info(`Posting results for ${headSha}`);
8886
const createCheckRequest = {
8987
...github.context.repo,

0 commit comments

Comments
 (0)