Skip to content

Commit e547303

Browse files
author
Aaron McTavish
committed
Fix implicit getter lint warning
- Removed `get` keyword from read-only properties as it is implicit
1 parent ff374d9 commit e547303

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Sources/Controls/ValidatorTextField.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ open class ValidatorTextField: UITextField, ValidatorControl {
2121
///
2222
/// - SeeAlso: `setValidatorDelegate(_:)` to set the validator delegate.
2323
open weak var validatorDelegate: ValidatorControlDelegate? {
24-
get {
25-
return validatorControlResponder?.delegate
26-
}
24+
return validatorControlResponder?.delegate
2725
}
2826

2927
open var validatableText: String? {

Sources/Controls/ValidatorTextView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ open class ValidatorTextView: UITextView, ValidatorControl {
2121
///
2222
/// - SeeAlso: setValidatorDelegate(_:) to set the validator delegate.
2323
open weak var validatorDelegate: ValidatorControlDelegate? {
24-
get {
25-
return validatorControlResponder?.delegate
26-
}
24+
return validatorControlResponder?.delegate
2725
}
2826

2927
open var validatableText: String? {

0 commit comments

Comments
 (0)