Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocarboni committed Dec 23, 2023
1 parent ab5f405 commit 2b67a30
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
12 changes: 3 additions & 9 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58211,8 +58211,6 @@ var __webpack_exports__ = {};
// ESM COMPAT FLAG
__nccwpck_require__.r(__webpack_exports__);

// EXTERNAL MODULE: external "assert"
var external_assert_ = __nccwpck_require__(9491);
// EXTERNAL MODULE: external "path"
var external_path_ = __nccwpck_require__(1017);
// EXTERNAL MODULE: external "os"
Expand All @@ -58221,8 +58219,8 @@ var external_os_ = __nccwpck_require__(2037);
const promises_namespaceObject = require("fs/promises");
// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/core.js
var core = __nccwpck_require__(9093);
// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(7775);
// EXTERNAL MODULE: external "assert"
var external_assert_ = __nccwpck_require__(9491);
// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib/tool-cache.js
var tool_cache = __nccwpck_require__(5561);
// EXTERNAL MODULE: ./node_modules/.pnpm/semver@7.5.4/node_modules/semver/index.js
Expand Down Expand Up @@ -58296,7 +58294,6 @@ function cleanVersion(version) {




class GyanInstaller {
/**
* @param options {import('./installer').InstallerOptions}
Expand Down Expand Up @@ -58412,7 +58409,7 @@ class JohnVanSickleInstaller {
});
const readme = res.ok && (await res.text());
external_assert_.ok(readme, 'Failed to get latest johnvansickle ffmpeg release');
const versionMatch = readme.match(/version\: (.+)\n/);
const versionMatch = readme.match(/version: (.+)\n/);
external_assert_.ok(versionMatch, 'Failed to read version from readme');
core.debug(`Found latest johnvansickle release: ${versionMatch}`);
const version = normalizeVersion(versionMatch[1].trim(), isGitBuild);
Expand Down Expand Up @@ -58541,7 +58538,6 @@ const parse = dist/* parse */.Qc;




class EvermeetCxInstaller {
/**
* @param options {import('./installer').InstallerOptions}
Expand Down Expand Up @@ -58747,8 +58743,6 @@ async function install(options) {





/**
* @typedef {object} Dist
* @property {() => Promise<void>} downloadTool
Expand Down
2 changes: 0 additions & 2 deletions src/action.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import * as assert from 'assert';
import * as path from 'path';
import * as os from 'os';
import {chmod} from 'fs/promises';

import * as core from '@actions/core';
import * as exec from '@actions/exec';

import {install} from './dists/installer';

Expand Down
5 changes: 2 additions & 3 deletions src/dists/evermeet.cx.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import * as assert from 'assert';
import * as path from 'path';
import {mkdir, readdir, rename} from 'fs/promises';
import {mkdir, rename} from 'fs/promises';

import * as tc from '@actions/tool-cache';
import * as semver from 'semver';
import {fetch} from 'undici';
import {v4 as uuidV4} from 'uuid';

import {USER_AGENT, cleanVersion, getTempDir, normalizeVersion} from '../util';
import {USER_AGENT, cleanVersion, getTempDir} from '../util';

export class EvermeetCxInstaller {
/**
Expand Down
1 change: 0 additions & 1 deletion src/dists/gyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as assert from 'assert';
import * as path from 'path';
import {readdir} from 'fs/promises';

import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import {Octokit} from '@octokit/core';
import {fetch} from 'undici';
Expand Down
2 changes: 1 addition & 1 deletion src/dists/johnvansickle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class JohnVanSickleInstaller {
});
const readme = res.ok && (await res.text());
assert.ok(readme, 'Failed to get latest johnvansickle ffmpeg release');
const versionMatch = readme.match(/version\: (.+)\n/);
const versionMatch = readme.match(/version: (.+)\n/);
assert.ok(versionMatch, 'Failed to read version from readme');
core.debug(`Found latest johnvansickle release: ${versionMatch}`);
const version = normalizeVersion(versionMatch[1].trim(), isGitBuild);
Expand Down

0 comments on commit 2b67a30

Please sign in to comment.