mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-02 16:20:57 +02:00
fix(ios): handle non-optional callback binding
This commit is contained in:
@@ -118,10 +118,11 @@ import Gobackend
|
||||
streamQueue.async {
|
||||
var err: NSError?
|
||||
var response: String?
|
||||
guard let extensionId = GobackendConsumeExtensionCallbackState(
|
||||
let extensionId = GobackendConsumeExtensionCallbackState(
|
||||
route.state,
|
||||
&err
|
||||
), err == nil else {
|
||||
)
|
||||
guard err == nil, !extensionId.isEmpty else {
|
||||
NSLog("SpotiFLAC Mobile: Rejected invalid or expired extension callback")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user