diff --git a/.swiftlint.yml b/.swiftlint.yml index c15d0f8..d375fd9 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -50,6 +50,7 @@ opt_in_rules: - quick_discouraged_focused_test - quick_discouraged_pending_test - redundant_nil_coalescing + - redundant_type_annotation - sorted_first_last - strict_fileprivate - switch_case_on_newline diff --git a/SwiftGit2/Objects.swift b/SwiftGit2/Objects.swift index eb95889..6473633 100644 --- a/SwiftGit2/Objects.swift +++ b/SwiftGit2/Objects.swift @@ -59,7 +59,7 @@ public struct Signature { func makeUnsafeSignature() -> Result, NSError> { var signature: UnsafeMutablePointer? = nil let time = git_time_t(self.time.timeIntervalSince1970) // Unix epoch time - let offset: Int32 = Int32(timeZone.secondsFromGMT(for: self.time) / 60) + let offset = Int32(timeZone.secondsFromGMT(for: self.time) / 60) let signatureResult = git_signature_new(&signature, name, email, time, offset) guard signatureResult == GIT_OK.rawValue, let signatureUnwrap = signature else { let err = NSError(gitError: signatureResult, pointOfFailure: "git_signature_new")