mirror of
https://github.com/gradle/wrapper-validation-action.git
synced 2025-04-20 06:09:19 +08:00
Merge pull request #27 from sschuberth/minor-improvements
Minor improvements
This commit is contained in:
commit
e7b6c4bcaa
@ -1,11 +1,12 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"bracketSpacing": false,
|
||||
"arrowParens": "avoid",
|
||||
"parser": "typescript"
|
||||
}
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"bracketSpacing": false,
|
||||
"arrowParens": "avoid",
|
||||
"parser": "typescript",
|
||||
"endOfLine": "auto"
|
||||
}
|
||||
|
@ -5,9 +5,7 @@ const httpc = new httpm.HttpClient('gradle/wrapper-validation-action')
|
||||
export async function fetchValidChecksums(
|
||||
allowSnapshots: boolean
|
||||
): Promise<string[]> {
|
||||
const all: object[] = await httpGetJsonArray(
|
||||
'https://services.gradle.org/versions/all'
|
||||
)
|
||||
const all = await httpGetJsonArray('https://services.gradle.org/versions/all')
|
||||
const withChecksum = all.filter(entry =>
|
||||
entry.hasOwnProperty('wrapperChecksumUrl')
|
||||
)
|
||||
@ -15,7 +13,7 @@ export async function fetchValidChecksums(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(entry: any) => allowSnapshots || !entry.snapshot
|
||||
)
|
||||
const checksumUrls: string[] = allowed.map(
|
||||
const checksumUrls = allowed.map(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(entry: any) => entry.wrapperChecksumUrl as string
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user