Revert "Xcode 11.4 changes"

This reverts commit c306801149.
This commit is contained in:
Max Goedjen 2020-04-03 00:44:13 -07:00
parent c306801149
commit 30148ee3a4
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,9 @@ extension Agent {
extension Agent {
func identities() -> Data {
let secrets = storeList.stores.flatMap(\.secrets)
// TODO: RESTORE ONCE XCODE 11.4 IS GM
let secrets = storeList.stores.flatMap { $0.secrets }
// let secrets = storeList.stores.flatMap(\.secrets)
var count = UInt32(secrets.count).bigEndian
let countData = Data(bytes: &count, count: UInt32.bitWidth/8)
var keyData = Data()

View File

@ -110,7 +110,7 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
} else {
fallback = Constants.emptyStoreTag
}
return self.storeList.stores.compactMap(\.secrets.first).first?.id ?? fallback
return self.storeList.stores.compactMap { $0.secrets.first }.first?.id ?? fallback
}
}