diff --git a/.swiftlint.yml b/.swiftlint.yml index ef8311c1..5a553cdc 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -50,6 +50,9 @@ only_rules: # over `CGPoint(x: 0, y: 0)`). - prefer_zero_over_explicit_init + # Type annotations are redundant when the type can be inferred. + - redundant_type_annotation + # Use shorthand syntax for optional binding (`if let foo` instead of # `if let foo = foo`). - shorthand_optional_binding diff --git a/Sources/Encrypted Logs/ExponentialBackoffTimer.swift b/Sources/Encrypted Logs/ExponentialBackoffTimer.swift index a6536ce2..42d54b1a 100644 --- a/Sources/Encrypted Logs/ExponentialBackoffTimer.swift +++ b/Sources/Encrypted Logs/ExponentialBackoffTimer.swift @@ -56,5 +56,5 @@ struct ExponentialBackoffTimer { private(set) internal var next: DispatchTime = .now() /// A `Date` representation of `next`. - private(set) var nextDate: Date = Date() + private(set) var nextDate = Date() }