Remove unused variable

This commit is contained in:
lowlighter
2020-10-18 14:45:39 +02:00
parent 1ab7211044
commit 047d8630e6
2 changed files with 5 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -4,11 +4,10 @@
import * as _octokit from "@octokit/graphql" import * as _octokit from "@octokit/graphql"
import * as _core from "@actions/core" import * as _core from "@actions/core"
import * as _github from "@actions/github" import * as _github from "@actions/github"
import * as _axios from "axios"
;((async function () { ;((async function () {
//Hack because ES modules are not correctly transpiled with ncc //Hack because ES modules are not correctly transpiled with ncc
const [core, github, octokit, axios, metrics] = [_core, _github, _octokit, _axios, _metrics].map(m => (m && m.default) ? m.default : m) const [core, github, octokit, metrics] = [_core, _github, _octokit, _metrics].map(m => (m && m.default) ? m.default : m)
//Yaml boolean converter //Yaml boolean converter
const bool = (value, defaulted = false) => typeof value === "string" ? /^(?:[Tt]rue|[Oo]n|[Yy]es)$/.test(value) : defaulted const bool = (value, defaulted = false) => typeof value === "string" ? /^(?:[Tt]rue|[Oo]n|[Yy]es)$/.test(value) : defaulted
//Runner //Runner