Skip to content

Commit 7888f49

Browse files
AakifFRTochococo
authored andcommitted
updated if let to latest swift
1 parent b3795b0 commit 7888f49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source-cn/behavioral/chain_of_responsibility.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class MoneyPile: Withdrawing {
4747
return true
4848
}
4949

50-
if let next = self.next {
50+
if let next {
5151
return next.withdraw(amount: amount)
5252
}
5353

source/behavioral/chain_of_responsibility.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class MoneyPile: Withdrawing {
4747
return true
4848
}
4949

50-
if let next = self.next {
50+
if let next {
5151
return next.withdraw(amount: amount)
5252
}
5353

0 commit comments

Comments
 (0)