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:
@@ -11,14 +11,14 @@ struct DropFavorite: DropDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
guard let current = current else {
|
||||
guard let current else {
|
||||
return
|
||||
}
|
||||
|
||||
let from = favorites.firstIndex(of: current)
|
||||
let to = favorites.firstIndex(of: item)
|
||||
|
||||
guard let from = from, let to = to else {
|
||||
guard let from, let to else {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user