Skip to content

Commit 60fa1a8

Browse files
committed
Fix build warnings about unused variable 'buildService', and unnecessary 'try await'.
This now matches similar methods in the same file by simply returning a StringListResponse with an empty array. rdar://122969732
1 parent 35c3303 commit 60fa1a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/SWBBuildService/Messages.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ private struct MacCatalystUnavailableFrameworkNamesHandler: MessageHandler {
9999
}
100100
}
101101

102+
// TODO: Delete once all clients are no longer calling the public APIs which invoke this message
102103
private struct AppleSystemFrameworkNamesHandler: MessageHandler {
103104
func handle(request: Request, message: AppleSystemFrameworkNamesRequest) async throws -> StringListResponse {
104-
guard let buildService = request.service as? BuildService else {
105-
throw StubError.error("service object is not of type BuildService")
106-
}
107-
return try await StringListResponse([])
105+
return StringListResponse([])
108106
}
109107
}
110108

0 commit comments

Comments
 (0)