parent
c306801149
commit
30148ee3a4
|
@ -65,7 +65,9 @@ extension Agent {
|
||||||
extension Agent {
|
extension Agent {
|
||||||
|
|
||||||
func identities() -> Data {
|
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
|
var count = UInt32(secrets.count).bigEndian
|
||||||
let countData = Data(bytes: &count, count: UInt32.bitWidth/8)
|
let countData = Data(bytes: &count, count: UInt32.bitWidth/8)
|
||||||
var keyData = Data()
|
var keyData = Data()
|
||||||
|
|
|
@ -110,7 +110,7 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
|
||||||
} else {
|
} else {
|
||||||
fallback = Constants.emptyStoreTag
|
fallback = Constants.emptyStoreTag
|
||||||
}
|
}
|
||||||
return self.storeList.stores.compactMap(\.secrets.first).first?.id ?? fallback
|
return self.storeList.stores.compactMap { $0.secrets.first }.first?.id ?? fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue