Lint: if statements shouldn't wrap their conditionals in parentheses

This commit is contained in:
Matt Rubin 2016-12-18 00:28:51 -05:00
parent 66cf46d67d
commit 0f29b097e1
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
disabled_rules:
- control_statement
- file_length
- force_cast
- force_try

View File

@ -19,7 +19,7 @@ public struct OID {
/// string - A 40-byte hex formatted string.
public init?(string: String) {
// libgit2 doesn't enforce a maximum length
if (string.lengthOfBytes(using: String.Encoding.ascii) > 40) {
if string.lengthOfBytes(using: String.Encoding.ascii) > 40 {
return nil
}