mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Use Swift 5.7 if-let style
This commit is contained in:
@@ -7,7 +7,7 @@ struct PlayerQueueItemBridge: Defaults.Bridge {
|
||||
typealias Serializable = [String: String]
|
||||
|
||||
func serialize(_ value: Value?) -> Serializable? {
|
||||
guard let value = value else {
|
||||
guard let value else {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ struct PlayerQueueItemBridge: Defaults.Bridge {
|
||||
|
||||
func deserialize(_ object: Serializable?) -> Value? {
|
||||
guard
|
||||
let object = object,
|
||||
let object,
|
||||
let videoID = object["videoID"]
|
||||
else {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user