Skip to content

Commit 8bfc70b

Browse files
committed
Increase accuracy of release objects for macOS/xcode in mock toolchain downloader
1 parent 797c287 commit 8bfc70b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftlyTests/SwiftlyTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,11 @@ public class MockToolchainDownloader: HTTPRequestExecutor {
560560
Components.Schemas.Release(
561561
name: String(describing: releaseToolchain),
562562
date: "",
563-
platforms: [.init(
563+
platforms: platformName != "Xcode" ? [.init(
564564
name: platformName,
565565
platform: .init(value1: .linux, value2: "Linux"),
566566
archs: [cpuArch]
567-
)],
567+
)] : [],
568568
tag: "",
569569
xcode: "",
570570
xcodeRelease: true

0 commit comments

Comments
 (0)