Skip to content

Commit

Permalink
updated if let to latest swift
Browse files Browse the repository at this point in the history
  • Loading branch information
AakifFRT authored and ochococo committed Jan 18, 2024
1 parent b3795b0 commit 7888f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source-cn/behavioral/chain_of_responsibility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class MoneyPile: Withdrawing {
return true
}

if let next = self.next {
if let next {
return next.withdraw(amount: amount)
}

Expand Down
2 changes: 1 addition & 1 deletion source/behavioral/chain_of_responsibility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class MoneyPile: Withdrawing {
return true
}

if let next = self.next {
if let next {
return next.withdraw(amount: amount)
}

Expand Down

0 comments on commit 7888f49

Please sign in to comment.