mirror of
https://github.com/actions/setup-python.git
synced 2025-07-02 23:53:47 +00:00
Minor refactor
This commit is contained in:
parent
0a1e867161
commit
71e2dec535
2 changed files with 6 additions and 14 deletions
|
@ -207,11 +207,9 @@ export function pypyVersionToSemantic(versionSpec: string) {
|
|||
|
||||
export function isArchPresentForWindows(item: any, architecture: string) {
|
||||
architecture = ReplaceX32toX86(architecture);
|
||||
return item.files.some((file: any) => {
|
||||
return (
|
||||
return item.files.some((file: any) =>
|
||||
file.arch === architecture && WINDOWS_PLATFORMS.includes(file.platform)
|
||||
);
|
||||
});
|
||||
);
|
||||
}
|
||||
|
||||
export function isArchPresentForMacOrLinux(
|
||||
|
@ -226,11 +224,9 @@ export function isArchPresentForMacOrLinux(
|
|||
|
||||
export function findAssetForWindows(releases: any, architecture: string) {
|
||||
architecture = ReplaceX32toX86(architecture);
|
||||
return releases.files.find((item: any) => {
|
||||
return (
|
||||
return releases.files.find((item: any) =>
|
||||
item.arch === architecture && WINDOWS_PLATFORMS.includes(item.platform)
|
||||
);
|
||||
});
|
||||
);
|
||||
}
|
||||
|
||||
export function findAssetForMacOrLinux(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue