Xcode 11.4 changes

This commit is contained in:
Max Goedjen 2020-04-02 18:22:59 -07:00
parent 9c60a0b7dd
commit c306801149
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 2 additions and 4 deletions

View File

@ -65,9 +65,7 @@ extension Agent {
extension Agent {
func identities() -> Data {
// TODO: RESTORE ONCE XCODE 11.4 IS GM
let secrets = storeList.stores.flatMap { $0.secrets }
// let secrets = storeList.stores.flatMap(\.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 { $0.secrets.first }.first?.id ?? fallback
return self.storeList.stores.compactMap(\.secrets.first).first?.id ?? fallback
}
}