Skip to content

Commit

Permalink
Fixed warnings that caused Travis CI to fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyVancura committed Dec 7, 2016
1 parent 26e082e commit 16172e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pod/Classes/UI/NumberInputTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ public class NumberInputTextField: StylizedTextField {

if numberPartiallyValid {
// Set text and apply text color changes if the prefilled card type is unknown
textField(self,
shouldChangeCharactersIn: NSRange(location: 0, length: text.characters.count ?? 0),
replacementString: cardNumber.rawValue)
_ = textField(self,
shouldChangeCharactersIn: NSRange(location: 0, length: text.characters.count),
replacementString: cardNumber.rawValue)
}
}

Expand Down

0 comments on commit 16172e8

Please sign in to comment.