Use explicit any

This commit is contained in:
Sven-Hendrik Haase 2023-01-03 22:20:36 +01:00
parent 039214a996
commit 9c4a92ec0d
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,6 @@
"@typescript-eslint/func-call-spacing": ["error", "never"], "@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error", "@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extraneous-class": "error", "@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-for-in-array": "error", "@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": "error", "@typescript-eslint/no-inferrable-types": "error",

View File

@ -24,7 +24,7 @@ async function get_release_by_tag(
...repo(), ...repo(),
tag: tag tag: tag
}) })
} catch (error) { } catch (error: any) {
// If this returns 404, we need to create the release first. // If this returns 404, we need to create the release first.
if (error.status === 404) { if (error.status === 404) {
core.debug( core.debug(
@ -180,7 +180,7 @@ async function run(): Promise<void> {
) )
core.setOutput('browser_download_url', asset_download_url) core.setOutput('browser_download_url', asset_download_url)
} }
} catch (error) { } catch (error: any) {
core.setFailed(error.message) core.setFailed(error.message)
} }
} }