Skip to content

Commit 96aff56

Browse files
committed
Remove the repeated let statements in conditional binding cascade
1 parent 5ede7ba commit 96aff56

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/TokenField/ICTokenField.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ public class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDele
282282
removeHighlightedToken() // as user starts typing when a token is focused
283283
inputTextField.showsCursor = true
284284

285-
guard
286-
let input = textField.text,
287-
let text: NSString = (input as NSString).stringByReplacingCharactersInRange(range, withString: string)
285+
guard let
286+
input = textField.text,
287+
text: NSString = (input as NSString).stringByReplacingCharactersInRange(range, withString: string)
288288
else {
289289
return true
290290
}

0 commit comments

Comments
 (0)