mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
Format code
This commit is contained in:
parent
82e58e0e69
commit
97960c6cd2
1 changed files with 10 additions and 10 deletions
|
@ -207,11 +207,11 @@ export function pypyVersionToSemantic(versionSpec: string) {
|
||||||
|
|
||||||
export function isArchPresentForWindows(item: any, architecture: string) {
|
export function isArchPresentForWindows(item: any, architecture: string) {
|
||||||
architecture = ReplaceX32toX86(architecture);
|
architecture = ReplaceX32toX86(architecture);
|
||||||
return item.files.some(
|
return item.files.some((file: any) => {
|
||||||
(file: any) => {
|
return (
|
||||||
return file.arch === architecture && WINDOWS_PLATFORMS.includes(file.platform);
|
file.arch === architecture && WINDOWS_PLATFORMS.includes(file.platform)
|
||||||
}
|
);
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isArchPresentForMacOrLinux(
|
export function isArchPresentForMacOrLinux(
|
||||||
|
@ -226,11 +226,11 @@ export function isArchPresentForMacOrLinux(
|
||||||
|
|
||||||
export function findAssetForWindows(releases: any, architecture: string) {
|
export function findAssetForWindows(releases: any, architecture: string) {
|
||||||
architecture = ReplaceX32toX86(architecture);
|
architecture = ReplaceX32toX86(architecture);
|
||||||
return releases.files.find(
|
return releases.files.find((item: any) => {
|
||||||
(item: any) => {
|
return (
|
||||||
return item.arch === architecture && WINDOWS_PLATFORMS.includes(item.platform);
|
item.arch === architecture && WINDOWS_PLATFORMS.includes(item.platform)
|
||||||
}
|
);
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function findAssetForMacOrLinux(
|
export function findAssetForMacOrLinux(
|
||||||
|
|
Loading…
Add table
Reference in a new issue