Skip to content

Commit

Permalink
Styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
uny committed Sep 5, 2016
1 parent f6d6120 commit 8683eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Rules/MaximumLengthRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public struct MaximumLengthRule: Rule {

public func validate<T>(_ value: T) -> Bool {
guard let value = value as? String else { return false }
return value.characters.count <= Int(length)
return value.characters.count <= Int(self.length)
}
}
2 changes: 1 addition & 1 deletion Source/Rules/MinimumLengthRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public struct MinimumLengthRule: Rule {

public func validate<T>(_ value: T) -> Bool {
guard let value = value as? String else { return false }
return value.characters.count >= Int(length)
return value.characters.count >= Int(self.length)
}
}

0 comments on commit 8683eb8

Please sign in to comment.