mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Lint: if statements shouldn't wrap their conditionals in parentheses
This commit is contained in:
parent
66cf46d67d
commit
0f29b097e1
@ -1,5 +1,4 @@
|
||||
disabled_rules:
|
||||
- control_statement
|
||||
- file_length
|
||||
- force_cast
|
||||
- force_try
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user